Documentation ¶
Overview ¶
FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
Index ¶
Constants ¶
View Source
const PathMatchAll = "*"
PathMatchAll is a token used as part of a Path to match any key at that level in the nested structure
View Source
const PathMatchList = "[]"
PathMatchList is a token used as part of a Path to match items in a list
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LookupValue ¶
LookupValue is a function which maps from variable names to values. Returns the value as a string and a bool indicating whether the value is present, to distinguish between an empty string and the absence of a value.
type Options ¶
type Options struct { // LookupValue from a key LookupValue LookupValue // TypeCastMapping maps key paths to functions to cast to a type TypeCastMapping map[Path]Cast // Substitution function to use Substitute func(string, template.Mapping) (string, error) }
Options supported by Interpolate
Click to show internal directories.
Click to hide internal directories.