Documentation
¶
Index ¶
- Variables
- func BytesMarshalText(b []byte) ([]byte, error)
- func BytesString(b []byte) string
- func DynamicBytesUnmarshalText(dst *[]byte, text []byte) error
- func FixedBytesUnmarshalText(dst []byte, text []byte) error
- func Uint64Marshal(v uint64) ([]byte, error)
- func Uint64Unmarshal(v *uint64, b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DestNilErr = errors.New("destination is nil")
View Source
var EmptyInputErr = errors.New("input is empty")
View Source
var MissingQuoteErr = errors.New("input has quote open without close")
Functions ¶
func BytesMarshalText ¶
func BytesString ¶ added in v0.1.2
func DynamicBytesUnmarshalText ¶ added in v0.1.3
Decodes hex data, with optional 0x prefix, and lower/upper/mixed case. Reuses the dst space if possible. If dst is too small, a new dst is allocated and the old header is overwritten
func FixedBytesUnmarshalText ¶
Decodes hex data, with optional 0x prefix, and lower/upper/mixed case. The decoded byte length must match the dst length.
func Uint64Unmarshal ¶
Parse a uint64, with or without quotes, in any base, with common prefixes accepted to change base.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.