Documentation
¶
Index ¶
- func Execute(name string, args []string, kwargs map[string]string) (string, error)
- func Expand(input string) (string, error)
- func ExpandWithOptions(input string, opts ExpandOptions) (string, error)
- type ExpandOptions
- type Macro
- type MacroArg
- type MacroArgType
- type MacroArgument
- type MacroExpr
- type MacroKV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandWithOptions ¶
func ExpandWithOptions(input string, opts ExpandOptions) (string, error)
Types ¶
type ExpandOptions ¶
type ExpandOptions struct {
IgnoreSyntaxErrors bool
}
type MacroArg ¶
type MacroArg struct {
Name string
Type MacroArgType
Default string
Required bool
Pos *int
}
type MacroArgType ¶
type MacroArgType string
const ( MacroArgTypeString MacroArgType = "string" MacroArgTypeInt MacroArgType = "int" MacroArgTypeBool MacroArgType = "bool" )
type MacroArgument ¶
type MacroExpr ¶
type MacroExpr struct {
Name string `parser:"@MacroName"`
Arguments []*MacroArgument `parser:"(@@*)"`
}
Click to show internal directories.
Click to hide internal directories.