Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RegexVariables is the Regex for '{{...}}' at the beginning of the string, and 'x{{...}}' where 'x' is not '\' RegexVariables = regexp.MustCompile(`(^|[^\\])(\{\{(?:\{[^{}]*\}|[^{}])*\}\})`) // RegexReferences is the Regex for '$(...)' at the beginning of the string, and 'x$(...)' where 'x' is not '\' RegexReferences = regexp.MustCompile(`^\$\(.[^\ ]*\)|[^\\]\$\(.[^\ ]*\)`) // RegexEscpReferences is the Regex for '\$(...)' RegexEscpReferences = regexp.MustCompile(`\\\$\(.[^\ \)]*\)`) RegexVariableInit = regexp.MustCompile(`^\{\{(\{[^{}]*\}|[^{}])*\}\}`) RegexElementIndex = regexp.MustCompile(`{{\s*elementIndex\d*\s*}}`) )
Functions ¶
func IsReference ¶
IsReference returns true if the element contains a 'valid' reference $()
func IsVariable ¶
IsVariable returns true if the element contains a 'valid' variable {{}}
func ObjectHasVariables ¶
func ObjectHasVariables(object interface{}) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.