Package hex implements hexadecimal encoding and decoding functions.
Digits define the hexadecimal ASCII digits (0-9, a-f).
DecodeString decodes the bytes represented by the hexadecimal string s. The function returns also a boolean success value. The success value is false if the input string length is not even or if any of the runes in the input string are not valid hexadecimal digits (0-9, a-f, A-F).
DigitToByte converts the hexadecimal digit r to its byte value. The return value is math.MaxInt32 if the input digit is invalid.
EncodeToString returns a hexadecimal encoding of src.
EncodedLen returns the length of an encoding of n source bytes. Specifically, this returns n * 2.