feat: add gen enum command

This commit is contained in:
Rogee
2024-12-19 15:00:58 +08:00
parent 797ff49fc7
commit 80ab62534d
15 changed files with 2674 additions and 5 deletions

View File

@@ -0,0 +1,16 @@
//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"))
}