Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Function ¶
type Function struct { Name string Receiver string IsError bool IsContext bool Synopsis string Comment string }
Function represented a job function from a mage file
func (Function) TemplateName ¶ added in v1.2.4
TemplateName returns the invocation name, supporting namespaced functions.
func (Function) TemplateString ¶ added in v1.2.4
TemplateString returns code for the template switch to run the target. It wraps each target call to match the func(context.Context) error that runTarget requires.
Click to show internal directories.
Click to hide internal directories.