mapsutil

package
v0.0.0-...-e2ff964 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package mapsutil provides small map-copy helpers used across internal packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneOrEmpty

func CloneOrEmpty[V any](values map[string]V) map[string]V

CloneOrEmpty returns a copy of string values, or an initialized empty map for nil input.

func CloneOrNil

func CloneOrNil[V any](values map[string]V) map[string]V

CloneOrNil returns a copy of string values, or nil for nil or empty input.

func ClonePreserveNil

func ClonePreserveNil[V any](values map[string]V) map[string]V

ClonePreserveNil returns a copy of string values, or nil for nil input.

func IntMapToAnyMap

func IntMapToAnyMap(values map[string]int) map[string]any

IntMapToAnyMap copies integer map values into a JSON-friendly 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