util

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 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(raw any) map[string]any

CloneAnyMap returns a shallow copy of supported raw map types. Unsupported inputs yield an empty map.

func CloneStringMap

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

CloneStringMap returns a shallow copy of input. It returns a non-nil map even when input is nil.

func FirstNonEmpty

func FirstNonEmpty(values ...string) string

FirstNonEmpty returns the first non-empty string in values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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