modulepackage
0.0.0-20181122101858-f5f958428db8
Repository: https://github.com/cznic/sortutil.git
Documentation: pkg.go.dev
# README
Packages in this repository:
Install: $ go get github.com/cznic/sortutil Godocs: http://godoc.org/github.com/cznic/sortutil
# Functions
Dedupe returns n, the number of distinct elements in data.
SearchBigInts searches for x in a sorted slice of *big.Int and returns the index as specified by sort.Search.
SearchBigRats searches for x in a sorted slice of *big.Int and returns the index as specified by sort.Search.
SearchBytes searches for x in a sorted slice of bytes and returns the index as specified by sort.Search.
SearchFloat32s searches for x in a sorted slice of float32 and returns the index as specified by sort.Search.
SearchInt16s searches for x in a sorted slice of int16 and returns the index as specified by sort.Search.
SearchInt32s searches for x in a sorted slice of int32 and returns the index as specified by sort.Search.
SearchInt64s searches for x in a sorted slice of int64 and returns the index as specified by sort.Search.
SearchInt8s searches for x in a sorted slice of int8 and returns the index as specified by sort.Search.
SearchRunes searches for x in a sorted slice of uint64 and returns the index as specified by sort.Search.
SearchUint16s searches for x in a sorted slice of uint16 and returns the index as specified by sort.Search.
SearchUint32s searches for x in a sorted slice of uint32 and returns the index as specified by sort.Search.
SearchUint64s searches for x in a sorted slice of uint64 and returns the index as specified by sort.Search.
SearchUints searches for x in a sorted slice of uints and returns the index as specified by sort.Search.
# Type aliases
BigIntSlice attaches the methods of sort.Interface to []*big.Int, sorting in increasing order.
BigRatSlice attaches the methods of sort.Interface to []*big.Rat, sorting in increasing order.
ByteSlice attaches the methods of sort.Interface to []byte, sorting in increasing order.
Float32Slice attaches the methods of sort.Interface to []float32, sorting in increasing order.
Int16Slice attaches the methods of sort.Interface to []int16, sorting in increasing order.
Int32Slice attaches the methods of sort.Interface to []int32, sorting in increasing order.
Int64Slice attaches the methods of sort.Interface to []int64, sorting in increasing order.
Int8Slice attaches the methods of sort.Interface to []int8, sorting in increasing order.
RuneSlice attaches the methods of sort.Interface to []rune, sorting in increasing order.
Uint16Slice attaches the methods of sort.Interface to []uint16, sorting in increasing order.
Uint32Slice attaches the methods of sort.Interface to []uint32, sorting in increasing order.
Uint64Slice attaches the methods of sort.Interface to []uint64, sorting in increasing order.
UintSlice attaches the methods of sort.Interface to []uint, sorting in increasing order.