operations

package
v0.0.0-...-ba6d279 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepCopyMap

func DeepCopyMap(config map[string]any) (map[string]any, error)

DeepCopyMap creates a copy of the map that doesn't have any links to the original map

func GetValue

func GetValue(keyPath []string, searchMap map[string]any) (any, error)

GetValue recursively traverses keyPath, returning the value of the specified keyPath in searchMap.

func LoadObjectFromMap

func LoadObjectFromMap(key string, config map[string]any, object any)

LoadObjectFromMap unmarshals a specific key's value into an object

func ReplaceValue

func ReplaceValue(keyPath []string, replaceVal any, searchMap map[string]any) (map[string]any, error)

ReplaceValue recursively traverses keyPath, replacing the specified replaceVal in searchMap.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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