Documentation ¶
Index ¶
- Variables
- func Decode(dst, src []byte) (int, error)
- func DecodeString(s string) ([]byte, error)
- func DecodedLen(n int) int
- func Encode(dst, src []byte) int
- func EncodeToString(src []byte) (str string)
- func EncodedLen(n int) int
- func Translate(s string) []string
- func TranslateOne(s string) (string, error)
- func TranslateOneTo(s, to string) (string, error)
- func TranslateTo(s, to string) (t []string)
- type InvalidByteError
Constants ¶
This section is empty.
Variables ¶
ErrLength results from decoding an odd length slice.
Functions ¶
func Decode ¶
Decode decodes src into dst using the standard encoding.
func DecodeString ¶
DecodeString returns the bytes represented by the modhex string s.
func Encode ¶
Encode encodes src into dst using the standard encoding.
func EncodeToString ¶
EncodeToString returns the modhex encoding of src.
func Translate ¶
Translate calls TranslateTo with the standard modhex alphabet.
func TranslateOne ¶
TranslateOne calls TranslateOneTo with the standard modhex alphabet.
func TranslateOneTo ¶
TranslateOne expects one translation for a given modhex string.
Types ¶
type InvalidByteError ¶
type InvalidByteError byte
InvalidByteError values describe errors resulting from an invalid byte in a modhex string.
func (InvalidByteError) Error ¶
func (err InvalidByteError) Error() string
Click to show internal directories.
Click to hide internal directories.