Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapKeysToSlice ¶
func MapKeysToSlice[K comparable, V any](m map[K]V) []K
MapKeysToSlice converts the map's keys to a slice.
func MapKeysToSortedSlice ¶
MapKeysToSortedSlice converts the map's keys to a sorted slice.
func ToStructMap ¶
func ToStructMap[T comparable](s []T) map[T]struct{}
ToStructMap converts the slice to a map with struct{} values.
Types ¶
Click to show internal directories.
Click to hide internal directories.