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.
Click to show internal directories.
Click to hide internal directories.