Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapKeysToSlice ¶
func MapKeysToSlice[T comparable, K any](m map[T]K) []T
func RandomElementFromSet ¶
func RandomElementFromSet[T comparable](s map[T]struct{}) T
func RandomElementFromSlice ¶
Selects a random element from a slice and returns it and it's index
func ReadFileIntoSlice ¶
func RemoveIndex ¶
Takes a slice and an index and returns a new slice with the element at s[index] removed
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.