maps

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

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

Copy is there to reduce imports, when using both Keys and Copy.

func Keys

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

Keys is a short alias to preserve the behavior of "golang.org/x/exp/maps.Keys", which is now flagged by linters as outdated. The suggested replacement is more verbose and, in my opinion, less readable. This alias provides a concise and readable alternative.

Types

This section is empty.

Jump to

Keyboard shortcuts

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