Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Select ¶
func Select(selector string, input, output interface{}) interface{}
Select resolves a value from either the input or output JSON-like roots (maps/slices produced by json.Unmarshal) based on a dot/bracket selector.
Supported prefixes:
- "output" (default when no prefix is provided)
- "input"
Supported path syntax:
- dot-separated keys: a.b.c
- array indices: a.0.b or a[0].b
When a path segment cannot be resolved the function returns nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.