Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertStrings ¶ added in v0.18.0
func ConvertStrings[B, A ~string](input []A) []B
ConvertStrings converts a slice of type A (with underlying type string) to a slice of type B (with underlying type string).
func Remove ¶
func Remove[T comparable](slice []T, elem T) []T
Remove removes all values equal to elem from slice.
The closest equivalent in the standard slices package is:
DeleteFunc(func(x T) bool { return x == elem })
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.