Files
atomctl/pkg/utils/generator/embedded_1.16.go
2024-12-19 15:00:58 +08:00

17 lines
253 B
Go

//go:build go1.16
// +build go1.16
package generator
import (
"embed"
"text/template"
)
//go:embed enum.tmpl enum_string.tmpl
var content embed.FS
func (g *Generator) addEmbeddedTemplates() {
g.t = template.Must(g.t.ParseFS(content, "*.tmpl"))
}