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