Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAndParseTemplates ¶
func FindAndParseTemplates(vfs fs.FS, rootTmpl *gotemplate.Template, rootDir string) (*gotemplate.Template, error)
func Helpers ¶
func Helpers(baseTemplate *gotemplate.Template) gotemplate.FuncMap
Types ¶
type Assignment ¶
type Assignment struct { Path ast.Path InitSafeguards []string Constraints []ast.AssignmentConstraint Method ast.AssignmentMethod Value ast.AssignmentValue }
type Builder ¶
type Builder struct { Package string BuilderSignatureType string BuilderName string ObjectName string Imports fmt.Stringer ImportAlias string // alias to the pkg in which the object being built lives. Comments []string Constructor Constructor Properties []ast.StructField Options []Option Defaults []OptionCall }
type Constructor ¶
type Constructor struct { Args []ast.Argument Assignments []Assignment }
type Option ¶
type Option struct { Name string Comments []string Args []ast.Argument Assignments []Assignment }
type OptionCall ¶
Click to show internal directories.
Click to hide internal directories.