Documentation
¶
Overview ¶
Package expression evaluates ${...} expressions against a context map. If a string is a single expression, the resolved value preserves its Go type. Mixed literal+expression strings are interpolated to a string result.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsExpression ¶
ContainsExpression reports whether s includes any ${...} pattern.
func Evaluate ¶
Evaluate resolves all ${...} expressions in s against ctx. A string that is exactly one expression (e.g. "${count}") returns the native Go value. Mixed strings return a string with interpolated values.
func ExtractPaths ¶
ExtractPaths returns every dot-path referenced in ${...} expressions.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.