mag

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy added in v1.0.15

func Copy[K comparable, V any](dst, src map[K]V)

Copy copy src map to dst map.

func Equal added in v1.0.12

func Equal[K comparable, V comparable](a map[K]V, b map[K]V) bool

Equal check equal for two map a and b.

func Merge

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

Merge merge all map `ms`, return the merged map.

func Reverse

func Reverse[K comparable, V comparable](m map[K]V) map[V]K

Reverse reverse key/value from map m, return the reversed map

Types

This section is empty.

Jump to

Keyboard shortcuts

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