maputil

package
v1.7.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreEqual

func AreEqual[K comparable](map1, map2 map[K]string) bool

AreEqual checks if two maps are equal.

func Merge

func Merge[K comparable, V any](maps ...map[K]V) map[K]V

Merge merges all maps to a new one.

func MergeTo

func MergeTo[K comparable, V any](original map[K]V, ms ...map[K]V) map[K]V

MergeTo merges all maps to the original one.

func Select

func Select[K comparable, V any](originalMap map[K]V, keys ...K) map[K]V

Select returns a new map with selected keys and values of the originalMap

Types

This section is empty.

Jump to

Keyboard shortcuts

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