package
0.0.50-alpha.23
Repository: https://github.com/openimsdk/tools.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
Between checks if data is between left and right, excluding equality.
BetweenEq checks if data is between left and right, including equality.
BetweenLEq checks if data is between left and right, including left equality.
BetweenREq checks if data is between left and right, including right equality.
BothExist Gets the common elements in the slice (intersection).
BothExistAny gets elements that are common in the slice (intersection).
Complete whether a and b are equal after deduplication (ignore order).
Contain Whether to include.
Contains Whether to include.
No description provided by the author
copy a by b b->a.
Delete Delete slice elements, support negative number to delete the reciprocal number.
DeleteAt Delete slice elements, support negative number to delete the reciprocal number.
DeleteElems delete elems in slice.
No description provided by the author
DistinctAny duplicate removal.
No description provided by the author
Duplicate Whether there are duplicates.
DuplicateAny Whether there are duplicates.
Equal Compares slices to each other (including element order).
No description provided by the author
No description provided by the author
No description provided by the author
HasKey get whether the map contains key.
If true -> a, false -> b.
IndexAny get the index of the element.
IndexOf get the index of the element.
No description provided by the author
No description provided by the author
Keys get map keys.
Max get maximum value.
Min get minimum value.
NotNilReplace sets old to new_ when new_ is not null.
Order sorts ts by es.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Single exists in a and does not exist in b or exists in b and does not exist in a.
Slice Converts slice types in batches.
SliceAnySub returns elements in slice a that are not present in slice b (a - b).
No description provided by the author
SliceSet slice to map[E]struct{}.
SliceSetAny slice to map[K]struct{}.
SliceSub returns elements in slice a that are not present in slice b (a - b) and remove duplicates.
SliceSubAny returns elements in slice a that are not present in slice b (a - b) and remove duplicates.
SliceSubConvertPre returns elements in slice a that are not present in slice b (a - b) and remove duplicates.
SliceSubFunc returns elements in slice a that are not present in slice b (a - b) and remove duplicates.
SliceSubFuncs returns elements in slice a that are not present in slice b (a - b) and remove duplicates.
SliceToMap slice to map.
SliceToMapAny slice to map (Custom type).
SliceToMapOkAny slice to map (Custom type, filter).
Sort basic type sorting.
SortAny custom sort method.
No description provided by the author
No description provided by the author
No description provided by the author
Values get map values.

# Interfaces

Ordered types that can be sorted.