resolver

package
v0.2.46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL