Documentation ¶
Index ¶
- Variables
- func CheckDecode(input string) (result []byte, version byte, err error)
- func CheckDecodeExpand(input string) (result []byte, expandversion, version byte, err error)
- func CheckEncode(input []byte, version byte) []byte
- func CheckEncodeExpand(input []byte, expandversion, version byte) []byte
- func Decode(b string) []byte
- func Encode(b []byte) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrChecksum = errors.New("checksum error")
ErrChecksum indicates that the checksum of a check-encoded string does not verify against the checksum.
View Source
var ErrInvalidFormat = errors.New("invalid format: version and/or checksum bytes missing")
ErrInvalidFormat indicates that the check-encoded string has an invalid format.
Functions ¶
func CheckDecode ¶
CheckDecode decodes a string that was encoded with CheckEncode and verifies the checksum.
func CheckDecodeExpand ¶
func CheckEncode ¶
CheckEncode prepends a version byte and appends a four byte checksum.
func CheckEncodeExpand ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.