Documentation ¶
Overview ¶
Package template implements data-driven templates for generating a value.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Func ¶
type Func interface { Exec(arg interface{}) (interface{}, error) UnmarshalArg(unmarshal func(interface{}) error) (interface{}, error) }
Func represents a left arrow function.
type FuncCall ¶ added in v0.17.0
type FuncCall struct {
Func
}
FuncCall represents a left arrow function call like '{{func <-}}'.
type Lazy ¶ added in v0.17.0
Lazy represents a value with lazy initialization. You can create a Lazy value by using $.
Directories ¶
Path | Synopsis |
---|---|
Package ast declares the types used to represent syntax trees.
|
Package ast declares the types used to represent syntax trees. |
Package parser implements a parser for a template string.
|
Package parser implements a parser for a template string. |
Package token defines constants representing the lexical tokens.
|
Package token defines constants representing the lexical tokens. |
Click to show internal directories.
Click to hide internal directories.