Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyString = &decError{"empty hex string"} ErrSyntax = &decError{"invalid hex string"} ErrMissingPrefix = &decError{"hex string without 0x prefix"} ErrOddLength = &decError{"hex string of odd length"} )
Functions ¶
func BytesToHex ¶
BytesToHex encodes b as a hex string with 0x prefix.
func Has0xPrefix ¶
func HexToBytes ¶
HexToBytes decodes a hex string with 0x prefix.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.