Versions in this module Expand all Collapse all v0 v0.0.1 Oct 31, 2024 Changes in this version + func CustomObjectUnmarshalBlock(obj ast.Object) string + func ExtraBuilderDocsBlock(builder ast.Builder) string + func ExtraObjectDocsBlock(obj ast.Object) string + func ExtraPackageDocsBlock(schema *ast.Schema) string + type Builder struct + BuilderName string + BuilderSignatureType string + Comments []string + Constructor ast.Constructor + Defaults []OptionCall + ImportAlias string + Imports fmt.Stringer + ObjectName string + Options []ast.Option + Package string + Properties []ast.StructField + type FuncMap = gotemplate.FuncMap + type Option func(*Template) error + func Funcs(funcMap FuncMap) Option + func Parse(payload string) Option + func ParseDirectories(rootDirs ...string) Option + func ParseFS(vfs fs.FS, rootDir string) Option + type OptionCall struct + Args []string + OptionName string + type Template struct + func New(name string, opts ...Option) (*Template, error) + func (template *Template) ExecuteAsBytes(data any) ([]byte, error) + func (template *Template) Exists(name string) bool + func (template *Template) Funcs(funcs FuncMap) *Template + func (template *Template) Render(file string, data any) (string, error) + func (template *Template) RenderAsBytes(file string, data any) ([]byte, error)