Documentation
¶
Index ¶
- Variables
- func AllExists[T any](idx Index[T], keys ...string) bool
- func Any[T any](elements []T, fn func(T) bool) bool
- func Find[T any](elements []T, fn func(T) bool) *T
- func Get[T any](idx Index[T], key string) (T, error)
- func Has[T any](idx Index[T], key string) bool
- func Keys[T any](idx Index[T]) []string
- func Merge[T any](slices ...[]T) []T
- func Remove[T any](elements []T, fn func(T) bool) []T
- func Unique[T comparable](elements ...T) []T
- type DiffResult
- type Index
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found in Index")
Functions ¶
func Unique ¶ added in v0.0.28
func Unique[T comparable](elements ...T) []T
Types ¶
type DiffResult ¶
func (DiffResult) String ¶
func (d DiffResult) String() string
Click to show internal directories.
Click to hide internal directories.