Files
go-enum/generator/embedded_1.16.go
Alex Bice bc24b100a9 Add support for string enums (#124)
* add support for string enums
2022-08-03 15:35:20 -07: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"))
}