Documentation
¶
Index ¶
- func Compare[T comparable](slice, slice2 []T) bool
- func CompareOrdered[T constraints.Ordered](slice, slice2 []T) bool
- func GetMap[K comparable, V any](slice []V, keyFunc func(V) K) map[K]V
- func InSlice[T comparable](slice []T, obj T) bool
- func RemoveAddr[T any](slice []*T) []T
- func Sort[T constraints.Ordered](slice []T)
- func TakeAddr[T any](slice []T) []*T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶ added in v1.0.6
func Compare[T comparable](slice, slice2 []T) bool
func CompareOrdered ¶ added in v1.0.6
func CompareOrdered[T constraints.Ordered](slice, slice2 []T) bool
func GetMap ¶ added in v1.0.9
func GetMap[K comparable, V any](slice []V, keyFunc func(V) K) map[K]V
func InSlice ¶
func InSlice[T comparable](slice []T, obj T) bool
func RemoveAddr ¶ added in v1.0.8
func RemoveAddr[T any](slice []*T) []T
func Sort ¶ added in v1.0.6
func Sort[T constraints.Ordered](slice []T)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.