Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Pattern = regexp.MustCompile(`\$([\w\.]*)\(([\w.]+)\)`)
)
Functions ¶
func Expand ¶
Expand expands params of "$(body.x.y.z)" in the expression.
The param can be prefixed by a chain of functions. The form is like: $f1.f2(body.x.y.z)
func ExpandWithPath ¶
ExpandWithPath expands params of either "$(path)", or "$(body.x.y.z)" in the expression.
Especially, for "body" params, it can be prefixed by a chain of functions. The form is like: $f1.f2(body.x.y.z) By defaults, the "escape" is applied. Otherwise, if explicitly defined a function, the "escape" won't be applied automatically, and need manually define if needed.
Types ¶
type FuncFactory ¶
type FuncFactory struct {
// contains filtered or unexported fields
}
func (FuncFactory) Build ¶
func (f FuncFactory) Build() map[FuncName]Func
Click to show internal directories.
Click to hide internal directories.