Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
Context is an interface that a template file context, i.e., the object manipulated inside the template file, must implement.
type Options ¶
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 mtemplate.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 }
type Templates ¶
type Templates struct {
// contains filtered or unexported fields
}
Templates is an object that holds information related to a group of template files, allowing them to be executed later.
func LoadTemplates ¶
Click to show internal directories.
Click to hide internal directories.