mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-26 10:37:04 -06:00
27 lines
744 B
Cheetah
27 lines
744 B
Cheetah
{{$typesPackage := .TypesPackage}}
|
|
|
|
// This file was generated by nomdl/codegen.
|
|
|
|
package {{.Name}}
|
|
|
|
import (
|
|
"github.com/attic-labs/noms/ref"
|
|
"github.com/attic-labs/noms/types"
|
|
)
|
|
|
|
{{if .HasTypes}}
|
|
var __{{.Name}}PackageInFile_{{.FileID}}_CachedRef ref.Ref
|
|
|
|
// This function builds up a Noms value that describes the type
|
|
// package implemented by this file and registers it with the global
|
|
// type package definition cache.
|
|
func init() {
|
|
p := {{$typesPackage}}NewPackage([]{{$typesPackage}}Type{ {{range $t := .Types}}
|
|
{{toTypesType $t "" ""}},{{end}}
|
|
}, []ref.Ref{ {{range $deps := .Dependencies}}
|
|
ref.Parse("{{$deps}}"),{{end}}
|
|
})
|
|
__{{.Name}}PackageInFile_{{.FileID}}_CachedRef = {{$typesPackage}}RegisterPackage(&p)
|
|
}
|
|
{{end}}
|