maputil

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone[K comparable, V any](in map[K]V) map[K]V

Clone returns a shallow copy of a map, preserving nil input as nil.

func CloneStringAny

func CloneStringAny(in map[string]any) map[string]any

CloneStringAny returns a shallow copy of a string-to-any map. Empty maps are preserved as non-nil to match lifecycle metadata JSON behavior.

func CloneStringFloat64

func CloneStringFloat64(in map[string]float64) map[string]float64

CloneStringFloat64 returns a shallow copy of a string-to-float64 map.

func CloneStringString

func CloneStringString(in map[string]string) map[string]string

CloneStringString returns a shallow copy of a string-to-string map.

func CloneStringStringNilIfEmpty

func CloneStringStringNilIfEmpty(in map[string]string) map[string]string

CloneStringStringNilIfEmpty returns a shallow copy of a string-to-string map, preserving nil/empty input as nil for optional metadata fields.

func StringStringToAny

func StringStringToAny(in map[string]string) map[string]any

StringStringToAny copies a string-to-string map into a string-to-any map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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