Documentation
¶
Overview ¶
Package loopexpander provides template substitution utilities for loop observations. This is a pure utility package with no domain or infrastructure dependencies.
Index ¶
- func LookupNestedVar(vars map[string]interface{}, path string) (interface{}, error)
- func ResolveLoopItems(itemsExpr string, vars map[string]interface{}) ([]interface{}, error)
- func SubstituteLoopInMap(m map[string]interface{}, loopCtx *Context, customName string) map[string]interface{}
- func SubstituteLoopInString(str string, loopCtx *Context, customName string) string
- type Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LookupNestedVar ¶
LookupNestedVar looks up a variable value by path (e.g., "config.path").
func ResolveLoopItems ¶
ResolveLoopItems extracts the list of items from a loop.items template expression. It expects the expression to be in the form "{{ .vars.xxx }}" and looks up the value.
Types ¶
Click to show internal directories.
Click to hide internal directories.