mapx

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 1 Imported by: 1

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.

Jump to

Keyboard shortcuts

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