Documentation ¶ Index ¶ func Last[E any](s []E) (E, bool) func NotIn[T comparable](input T, candidates []T) bool func OneOf[T comparable](input T, candidates []T) bool type Slice func (s Slice[T]) Len() int func (s Slice[T]) Less(i, j int) bool func (s Slice[T]) Swap(i, j int) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Last ¶ func Last[E any](s []E) (E, bool) func NotIn ¶ func NotIn[T comparable](input T, candidates []T) bool func OneOf ¶ func OneOf[T comparable](input T, candidates []T) bool Types ¶ type Slice ¶ type Slice[T cmp.Ordered] []T func (Slice[T]) Len ¶ func (s Slice[T]) Len() int func (Slice[T]) Less ¶ func (s Slice[T]) Less(i, j int) bool func (Slice[T]) Swap ¶ func (s Slice[T]) Swap(i, j int) Source Files ¶ View all Source files slice.go sort.go validate.go Click to show internal directories. Click to hide internal directories.