Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bytes ¶ added in v0.18.0
type Bytes []byte
Bytes is a byte slice that marshals/unmarshals from a hex-encoded string.
func (Bytes) MarshalText ¶ added in v0.18.0
MarshalText encodes Bytes into a hex string with a 0x prefix.
func (*Bytes) UnmarshalText ¶ added in v0.18.0
UnmarshalText decodes a hex string (with or without 0x prefix) into Bytes.
type Hash ¶ added in v0.16.0
Hash is a wrapper type for common.Hash that marshals and unmarshals hex strings. It can decode hex strings with or without the 0x prefix and with or without leading zeros and encodes hashes without leading zeros.
func (Hash) MarshalText ¶ added in v0.16.0
func (*Hash) UnmarshalText ¶ added in v0.16.0
Click to show internal directories.
Click to hide internal directories.