Files
dolt/nomdl/codegen/enum.tmpl
2015-09-30 17:48:32 -04:00

12 lines
255 B
Cheetah

// {{.Name}}
type {{.Name}} uint32
{{$name := .Name}}
const ({{range $index, $id := .Ids}}
{{title $id}}{{if eq $index 0}} {{$name}} = iota{{end}}{{end}}
)
// A Noms Value that describes {{.Name}}.
var __typeRefFor{{.Name}} = {{toTypesTypeRef .Type}}