Documentation
¶
Overview ¶
Package collections provides a set of utilities for working with collections, such as slices and maps.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortedKeys ¶
func SortedKeys[M ~map[K]V, K constraints.Ordered, V any](m M) []K
SortedKeys returns a sorted slice of keys of the input map. The keys must meet constraints.Ordered type constraint.
func ToStringSlice ¶
ToStringSlice converts a slice of T to a slice of strings.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.