mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-26 10:37:04 -06:00
The TypeRef function for a Noms Struct should be the (Name, PkgRef) and not the description of the struct fields. This is important because when serializing we need to write the package ref. Towards #281 #304
9 lines
159 B
Cheetah
9 lines
159 B
Cheetah
// {{.Name}}
|
|
|
|
type {{.Name}} uint32
|
|
|
|
{{$name := .Name}}
|
|
const ({{range $index, $id := .Ids}}
|
|
{{title $id}}{{if eq $index 0}} {{$name}} = iota{{end}}{{end}}
|
|
)
|