primitives

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneAnyMap

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

CloneAnyMap returns a shallow copy and preserves nil-vs-empty input.

func CloneAnyMapEmptyOnEmpty

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

CloneAnyMapEmptyOnEmpty returns an empty map when input is nil or empty.

func CloneAnyMapNilOnEmpty

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

CloneAnyMapNilOnEmpty returns nil when input is nil or empty.

func CloneStringMap

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

CloneStringMap returns a shallow copy and preserves nil-vs-empty input.

func CloneStringMapNilOnEmpty

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

CloneStringMapNilOnEmpty returns nil when input is nil or empty.

func FirstNonEmpty

func FirstNonEmpty(values ...string) string

FirstNonEmpty returns the first non-empty value after trimming whitespace.

func FirstNonEmptyRaw

func FirstNonEmptyRaw(values ...string) string

FirstNonEmptyRaw returns the first value whose trimmed form is non-empty.

func Int

func Int(value int) *int

Types

This section is empty.

Jump to

Keyboard shortcuts

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