mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
re add template.go
This commit is contained in:
parent
61ccf4ec6a
commit
10078992ef
1 changed files with 19 additions and 0 deletions
19
internal/networkd/template.go
Normal file
19
internal/networkd/template.go
Normal 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)
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue