maps

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone[M ~map[K]V, K comparable, V any](m M) M

func Copy

func Copy[M1 ~map[K]V, M2 ~map[K]V, K comparable, V any](dst M1, src ...M2)

func DeepMerge

func DeepMerge(src ...map[string]any) map[string]any

深层合并map

func DeleteFunc

func DeleteFunc[M ~map[K]V, K comparable, V any](m M, del func(K, V) bool)

func Equal

func Equal[M1, M2 ~map[K]V, K, V comparable](m1 M1, m2 M2) bool

func EqualFunc

func EqualFunc[M1 ~map[K]V1, M2 ~map[K]V2, K comparable, V1, V2 any](m1 M1, m2 M2, eq func(V1, V2) bool) bool

func Keys

func Keys[M ~map[K]V, K comparable, V any](m M) []K

func Merge

func Merge[M ~map[K]V, K comparable, V any](src ...M) M

合并并返回新的map

func MergeFunc

func MergeFunc[M ~map[K]V, K comparable, V any](f func(K, V) bool, src ...M) M

func Values

func Values[M ~map[K]V, K comparable, V any](m M) []V

Types

This section is empty.

Jump to

Keyboard shortcuts

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