package
0.5.3
Repository: https://github.com/shenwei356/util.git
Documentation: pkg.go.dev

# Functions

Alphabet returns the alphabet of a byte slice.
AlphabetFromCountOfByte returns the alphabet of a byte slice from count.
Bytes2Str convert byte slice to string without GC.
ByteToLower lowers a byte.
ByteToUpper upper a byte.
CountBytes counts given ASCII characters in a byte slice.
CountOfByte returns the count of byte for a byte slice.
MakeQuerySlice is used to replace map.
NewByteCoder Create a ByteCoder type.
ReverseByteSlice reverses a byte slice.
ReverseByteSliceInplace reverses a byte slice.
SortCountOfByte sorts count of byte.
Split splits a byte slice by giveen letters.
SubSlice provides similar slice indexing as python with one exception that end could be equal to 0.
WrapByteSlice wraps byte slice.
WrapByteSlice2 wraps byte slice, it reuses the bytes.Buffer.

# Variables

ErrInvalideCode means invalid code.
ErrInvalideLetter means invalid letter.

# Structs

ByteCoder is used to convert betweeen byte and int.
ByteCount is a struct store count of byte.
ReversedByteCountList is Reversed ByteCountList.

# Type aliases

ByteCountList is slice of ByteCount.
ByteSlice is []byte.
SliceOfByteSlice is [][]byte.