maps

package
v0.0.0-...-364cddf Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustSingle

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

func Pop

func Pop[M ~map[K]V, K comparable, V any](m M, key K) (V, bool)

Pop gets the value associated with the key (if any) and deletes it from the map.

func Single

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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