Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExpressionVarMatchRegex = regexp.MustCompile("^\\$\\{\\{[^\\}]+\\}\\}$")
ExpressionVarMatchRegex is the regex to check if a value matches the kiosk var format
View Source
var VarMatchRegex = regexp.MustCompile("(\\$+?\\{[^\\}]+\\})")
VarMatchRegex is the regex to check if a value matches the kiosk var format
Functions ¶
func ParseString ¶
func ParseString(value string, replace ReplaceVarFn) (interface{}, error)
ParseString parses a given string, calls replace var on found variables and returns the replaced string
func Walk ¶
Walk walks over an interface and replaces keys that match the match function with the replace function
func WalkStringMap ¶
WalkStringMap walks over an interface and replaces keys that match the match function with the replace function
Types ¶
type ReplaceVarFn ¶
ReplaceVarFn defines the replace function
Click to show internal directories.
Click to hide internal directories.