Documentation
¶
Overview ¶
Package mapping provides URL shortening functions base58.go provides functions to encode and decode numbers to base58
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidInput base error for invalid input ErrInvalidInput = errors.New("base58 invalid input") // ErrBase58Overflow is returned when the number to decode is too large, greater than eight bytes ErrBase58Overflow = fmt.Errorf("%w: number is too large", ErrInvalidInput) // ErrorInvalidCharacter is returned when an invalid character is found in the input ErrorInvalidCharacter = fmt.Errorf("%w: invalid character in input", ErrInvalidInput) )
Functions ¶
func Base58Decode ¶
Base58Decode decodes a base58 encoded string to a number
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.