maputil

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyKeys

func CopyKeys[K comparable, V any](from map[K]V) map[K]V

func DiffKeys

func DiffKeys[K comparable, V any](from map[K]V, to map[K]V) (map[K]V, map[K]V)

func In

func In[K comparable, V any](m map[K]V, keys ...K) bool

func Keys

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

func Values

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

Types

type Set

type Set[E comparable] map[E]any

func (Set[E]) Add

func (s Set[E]) Add(element E)

func (Set[E]) Has

func (s Set[E]) Has(element E) bool

func (Set[E]) Remove

func (s Set[E]) Remove(element E)

Jump to

Keyboard shortcuts

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