Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶ added in v0.6.0
Context is an interface that a template file context, i.e., the object manipulated inside the template file, must implement.
type Generated ¶ added in v0.6.0
Generated holds the template content already parsed, ready to be saved.
type Options ¶ added in v0.6.0
type Options struct { // StrictValidators if enabled forces us to use the validator function // for a template only if it is declared. Otherwise, the template will be // ignored. StrictValidators bool Kind tpl_types.Kind Path string FilesPrefix string `validate:"required"` Plugin *protogen.Plugin Files embed.FS `validate:"required"` Context Context `validate:"required"` HelperFunctions map[string]interface{} Addons []*addon.Addon }
Click to show internal directories.
Click to hide internal directories.