package
0.0.0-rc9
Repository: https://github.com/doublecloud/transfer.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
Contains checks if slice contains given element.
ContainsAll checks if slice contains all given elements, order independent.
ContainsAny checks if slice contains any of given elements.
Dedup removes duplicate values from slice.
DedupBools removes duplicate values from bool slice.
EqualUnordered checks if slices of type E are equal, order independent.
Filter reduces slice values using given function.
GroupBy groups slice entities into map by key provided via keyGetter.
GroupByUniqueKey groups slice entities into map by key provided via keyGetter with assumption that each key is unique.
GroupByUniqueKeyWithIndex groups slice entities into map by key provided via keyGetter with assumption that each key is unique.
GroupByWithIndex groups slice entities into map by key provided via keyGetter.
Intersection returns intersection for slices of various built-in types.
Join joins slice of any types.
Map applies given function to every value of slice.
Map applies given function to every value of slice.
Mutate is like Map, but it prohibits type changes and modifies original slice.
Reduce is like Filter, but modifies original slice.
Reverse reverses given slice.
Shuffle shuffles values in slice using given or pseudo-random source.
Sort is like slices.Sort but returns sorted copy of given slice.
SortBy sorts a slice in place using given sortKey.
SortDescBy sorts a slice in place using given sortKey in descending order.
SortDescStableBy sorts a slice in place using given sortKey in descending order, uses stable sorting.
SortStableBy sorts a slice in place using given sortKey, uses stable sorting.
Subtract returns copy of slice a without elements of slice b.

# Variables

ContainsString checks if string slice contains given string.
DedupFloat32s removes duplicate values from float32 slice.
DedupFloat64s removes duplicate values from float64 slice.
DedupInt16s removes duplicate values from int16 slice.
DedupInt32s removes duplicate values from int32 slice.
DedupInt64s removes duplicate values from int64 slice.
DedupInt8s removes duplicate values from int8 slice.
DedupInts removes duplicate values from ints slice.
DedupStrings removes duplicate values from string slice.
DedupUint16s removes duplicate values from uint16 slice.
DedupUint32s removes duplicate values from uint32 slice.
DedupUint64s removes duplicate values from uint64 slice.
DedupUint8s removes duplicate values from uint8 slice.
DedupUints removes duplicate values from uint slice.
EqualAnyOrderStrings checks if string slices are equal, order independent.
IntersectBools returns intersection of two bool slices Deprecated: use Intersection instead.
IntersectFloat32s returns intersection of two float32 slices Deprecated: use Intersection instead.
IntersectFloat64s returns intersection of two float64 slices Deprecated: use Intersection instead.
IntersectInt16s returns intersection of two int16 slices Deprecated: use Intersection instead.
IntersectInt32s returns intersection of two int32 slices Deprecated: use Intersection instead.
IntersectInt64s returns intersection of two int64 slices Deprecated: use Intersection instead.
IntersectInt8s returns intersection of two int8 slices Deprecated: use Intersection instead.
IntersectInts returns intersection of two int slices Deprecated: use Intersection instead.
IntersectStrings returns intersection of two string slices Deprecated: use Intersection instead.
IntersectUint16s returns intersection of two uint16 slices Deprecated: use Intersection instead.
IntersectUint32s returns intersection of two uint32 slices Deprecated: use Intersection instead.
IntersectUint64s returns intersection of two uint64 slices Deprecated: use Intersection instead.
IntersectUint8s returns intersection of two uint8 slices Deprecated: use Intersection instead.
IntersectUints returns intersection of two uint slices Deprecated: use Intersection instead.
ReverseBools reverses given bool slice.
ReverseFloat32s reverses given float32 slice.
ReverseFloat64s reverses given float64 slice.
ReverseInt16s reverses given int16 slice.
ReverseInt32s reverses given int32 slice.
ReverseInt64s reverses given int64 slice.
ReverseInt8s reverses given int8 slice.
ReverseInts reverses given int slice.
ReverseStrings reverses given string slice.
ReverseUint16s reverses given uint16 slice.
ReverseUint32s reverses given uint32 slice.
ReverseUint64s reverses given uint64 slice.
ReverseUint8s reverses given uint8 slice.
ReverseUints reverses given uint slice.
ShuffleBools shuffles values in bool slice using given or pseudo-random source.
ShuffleFloat32s shuffles values in float32 slice using given or pseudo-random source.
ShuffleFloat64s shuffles values in float64 slice using given or pseudo-random source.
ShuffleInt16s shuffles values in int16 slice using given or pseudo-random source.
ShuffleInt32s shuffles values in int32 slice using given or pseudo-random source.
ShuffleInt64s shuffles values in int64 slice using given or pseudo-random source.
ShuffleInt8s shuffles values in int8 slice using given or pseudo-random source.
ShuffleInts shuffles values in int slice using given or pseudo-random source.
ShuffleStrings shuffles values in string slice using given or pseudo-random source.
ShuffleUint16s shuffles values in uint16 slice using given or pseudo-random source.
ShuffleUint32s shuffles values in uint32 slice using given or pseudo-random source.
ShuffleUint64s shuffles values in uint64 slice using given or pseudo-random source.
ShuffleUint8s shuffles values in uint8 slice using given or pseudo-random source.
ShuffleUints shuffles values in uint slice using given or pseudo-random source.

# Structs

IndexedEntity stores an entity of original slice with its initial index in that slice.