Documentation ¶
Index ¶
- func AppendIfUniqueStrings(slice []string, elem string) []string
- func Cast[A any, B any](as []A) []B
- func ContainsString(in []string, elem string) bool
- func Deduplicate[T comparable](slice []T) []T
- func ExceptStrings(slice []string, except []string) []string
- func Filter[A any](as []A, pred func(A) bool) []A
- func FlatMap[A any, B any](as []A, mapper func(A) []B) []B
- func Map[A any, B any](as []A, mapper func(A) B) []B
- func ToStringSlice(slice [][]byte) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendIfUniqueStrings ¶
func ContainsString ¶
ContainsString determine whether the input slice contains the specified string.
func Deduplicate ¶
func Deduplicate[T comparable](slice []T) []T
func ExceptStrings ¶
ExceptStrings return a new slice that without the element appears in the second slice.
func ToStringSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.