Documentation ¶
Index ¶
- Constants
- Variables
- func AddLeader(str string) string
- func DecodeBigInt(hexStr string) (*big.Int, error)
- func DecodeBytes(src []byte) ([]byte, error)
- func DecodeFloat64(hexStr string) (float64, error)
- func DecodeInt(hexStr string) (int, error)
- func DecodeString(hexStr string) ([]byte, error)
- func DecodeUint64(hexStr string) (uint64, error)
- func EncodeBigInt(i *big.Int) string
- func EncodeBytes(src []byte) []byte
- func EncodeFloat64(f float64) string
- func EncodeInt(i int) string
- func EncodeString(str string) string
- func EncodeToString(b []byte) string
- func EncodeUint64(i uint64) string
- func StripLeader(hexStr string) (string, error)
Constants ¶
View Source
const Leader = "0x"
Leader ...
Variables ¶
View Source
var ( // ErrNotHexString ... ErrNotHexString = errors.New("not a hex string") )
Functions ¶
func DecodeUint64 ¶
DecodeUint64 decodes a hex string into a uint64
func EncodeFloat64 ¶
EncodeFloat64 ... https://www.h-schmidt.net/FloatConverter/IEEE754.html
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.