package
1.0.33
Repository: https://github.com/eluv-io/common-go.git
Documentation: pkg.go.dev

# Functions

Append appends all elements of source to target.
Clone is an alias of Copy and returns a shallow copy of the given slice.
Compare compares the elements of s1 and s2.
Contains returns true if the given slice contains the given elements, false otherwise.
ContainsFn returns true if the slice contains the given element using the provided function to compare elements, false otherwise.
Copy returns a shallow copy of the given slice.
CopyWithCap returns a copy of the given slice.
Dedupe removes any duplicates of all elements in target slice.
First returns the first element of the given slice.
Last returns the last element of the given slice.
Remove removes all occurrences of an element from the given slice.
RemoveFn removes all occurrences of an element from the given slice, using the provided function to compare elements.
RemoveIndex removes the element at the given index from the provided slice.
RemoveMatch removes all elements that match according to the provided match function from the given slice.
Reverse reverses the order of the elements in the provided slice.
Squash appends all elements of source to target, unless an element exists already in the target or any of the already appended elements.
SquashAndDedupe appends all elements of source to target and returns the deduped result.

# Interfaces

Equaler is the interface for structs implementing an Equal() function.