package
0.15.5
Repository: https://github.com/chia-network/go-chia-libs.git
Documentation: pkg.go.dev

# Functions

BytesToUint16 returns uint16 from []byte if you have more than two bytes in your []byte this wont work like you think.
BytesToUint32 returns uint32 from []byte if you have more than four bytes in your []byte this wont work like you think.
BytesToUint64 returns uint64 from []byte if you have more than eight bytes in your []byte this wont work like you think.
BytesToUint8 returns uint8 from []byte if you have more than one byte in your []byte this wont work like you think.
FormatBytes takes bytes as input and outputs a human friendly version.
GenerateRequestID generates a random string to use as a request ID.
ShiftNBytes returns the specified number of bytes from the start of the provided []byte and removes them from the original byte slice First returned value is the requested number of bytes from the beginning of the original byte slice Second returned value is the new original byte slice with the requested number of bytes removed from the front of it.
Uint16ToBytes Converts uint16 to []byte.
Uint32ToBytes Converts uint32 to []byte.
Uint64ToBytes Converts uint64 to []byte.
Uint8ToBytes Converts uint8 to []byte Kind of pointless, since byte is uint8, but here for consistency with the other methods.