Documentation
¶
Index ¶
- func Equal[T comparable](a, b []T) bool
- func Keys[K comparable, V any](m map[K]V) []K
- func Last[E any](s []E) (E, bool)
- func Merge[T any](a []T, b []T, cc ...[]T) []T
- func NotIn[T comparable](input T, candidates []T) bool
- func OneOf[T comparable](input T, candidates []T) bool
- func StrictEqual[T cmp.Ordered](a, b []T) bool
- type Slice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
func Equal[T comparable](a, b []T) bool
Equal compare two slice @notice: don't check sequence
func Keys ¶
func Keys[K comparable, V any](m map[K]V) []K
func NotIn ¶
func NotIn[T comparable](input T, candidates []T) bool
func OneOf ¶
func OneOf[T comparable](input T, candidates []T) bool
func StrictEqual ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.