Documentation ¶
Overview ¶
Package mapx provides a set of utilities for working with maps in Go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete[T1 comparable, T2 any](m map[T1]T2, keys ...T1)
Delete removes elements from a map by key.
func Exists ¶ added in v0.1.16
func Exists[T1 comparable, T2 any](m map[T1]T2, key T1) bool
Exists checks if a key exists in a map.
func Keep ¶
func Keep[T1 comparable, T2 any](m map[T1]T2, keys ...T1)
Keep removes elements from a map by key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.