diff --git a/metaschema/types.tmpl b/metaschema/types.tmpl index b4a65e06..5ffd0b84 100644 --- a/metaschema/types.tmpl +++ b/metaschema/types.tmpl @@ -1,3 +1,4 @@ +// Code generated by go generate; DO NOT EDIT. {{$packageName := toLower .Use -}} package {{ $packageName }} diff --git a/templates/implementation.go b/templates/implementation.go index f2b47480..3c90ba57 100644 --- a/templates/implementation.go +++ b/templates/implementation.go @@ -7,7 +7,9 @@ func GetImplementationTemplate() (*template.Template, error) { return template.New("").Parse(implementationTemplate) } -const implementationTemplate = `package {{.PackageName}} +const implementationTemplate = ` +// Code generated by go implementation; DO NOT EDIT. +package {{.PackageName}} import ( "github.com/docker/oscalkit/types/oscal/implementation" diff --git a/templates/profile.go b/templates/profile.go index 39e54ef2..20511c3e 100644 --- a/templates/profile.go +++ b/templates/profile.go @@ -11,6 +11,7 @@ func GetProfileTemplate() *template.Template { } const profileTemplate = ` +// Code generated by go generate; DO NOT EDIT. package {{.PackageName}} import (