jsonutil

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepCloneAny

func DeepCloneAny(value any) any

DeepCloneAny returns a deep copy of dynamic JSON-ish values.

func DeepCloneMap

func DeepCloneMap(src map[string]any) map[string]any

DeepCloneMap returns a deep copy of src.

func MergeRecursive

func MergeRecursive(base, update map[string]any) map[string]any

MergeRecursive deep-merges two dynamic maps. Nested maps are merged recursively and all inserted values are deep-cloned.

func ToMap

func ToMap(value any) map[string]any

ToMap converts a value into map[string]any. If the input is already a map[string]any, it is returned as-is.

Types

This section is empty.

Jump to

Keyboard shortcuts

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