Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveString
deprecated
added in
v0.1.0
Types ¶
type Token ¶ added in v0.1.0
type Token int
const ( TokenInvalid Token = iota TokenVariable TokenNumber TokenStringConstant TokenVariableEnd // }} // operators TokenDot // . TokenAdd // + TokenSubstract // - TokenMultiply // * TokenDivide // / TokenEqual // == TokenDifferent // != TokenNot // ! TokenOr // | TokenLogicOr // || TokenAnd // & TokenLogicAnd // && TokenXor // ^ )
type Var ¶ added in v0.1.0
type Var interface { Resolve(context.Context) (any, error) // resolve this variable and return its value IsStatic() bool // if true, it means this var will not change no matter what }
Var is a resolvable variable
func ParseString ¶ added in v0.1.0
ParseString parses a constant string
func ParseVariable ¶ added in v0.1.0
ParseVariable parses a variable string, such as what is typically found inside {{}}
Click to show internal directories.
Click to hide internal directories.