Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Function ¶
type Function struct { PkgAlias string Package string ImportPath string Name string Receiver string IsError bool IsContext bool Synopsis string Comment string }
Function represented a job function from a mage file
func (Function) ExecCode ¶ added in v1.7.0
ExecCode 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.
func (Function) ID ¶ added in v1.7.0
ID returns user-readable information about where this function is defined.
func (Function) TargetName ¶ added in v1.7.0
TargetName returns the name of the target as it should appear when used from the mage cli. It is always lowercase.
Click to show internal directories.
Click to hide internal directories.