structuredmap

package
v1.100.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

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) (map[string]any, 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