Documentation ¶
Overview ¶
Code generated by ragel @generated
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EnvResolver = VariableResolver(os.LookupEnv)
EnvResolver is a VariableResolver that maps every variable to an environment variable.
Functions ¶
This section is empty.
Types ¶
type String ¶
type String []term
String is a string that supports interpolation given some source of variable values.
func Parse ¶
Parse parses a string for interpolation.
Variables may be specified anywhere in the string in the format ${foo} or ${foo:default} where 'default' will be used if the variable foo was unset.
type VariableResolver ¶
VariableResolver resolves the value of a variable specified in the string.
The boolean value indicates whether this variable had a value defined. If a variable does not have a value and no default is specified, rendering will fail.
Click to show internal directories.
Click to hide internal directories.