structuredmap

package
v1.110.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetMapEntry

func SetMapEntry(m map[string]any, path Path, setFn SetFn) error

SetMapEntry sets an entry in the given map. It invokes the setter function at the given path with the respective value (if set).

Types

type Path

type Path []string

Path is the path to an element in a structured map.

type SetFn

type SetFn func(value any) (any, error)

SetFn is the function to set a config element to the given value.

Jump to

Keyboard shortcuts

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