re add template.go

This commit is contained in:
Samuel Lorch 2023-04-07 21:56:12 +02:00
parent 61ccf4ec6a
commit 10078992ef

View file

@ -0,0 +1,19 @@
package networkd
import (
"embed"
"text/template"
)
//go:embed template
var templateFS embed.FS
var templates *template.Template
func init() {
var err error
templates, err = template.New("").ParseFS(templateFS, "template/*.tmpl")
if err != nil {
panic(err)
}
}