Documentation
¶
Overview ¶
Package hex implements handy wrapper over hex encoding and decoding.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidHexStringInput is an error when [String] is malformed. // It may occur during Unmarshal functions. ErrInvalidHexStringInput = errors.New("hex: invalid string") )
Functions ¶
This section is empty.
Types ¶
type String ¶
type String []byte
String is a representation of hex-encoded string.
Empty String is represented by nil or empty slice.
func (String) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (String) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*String) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*String) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
Click to show internal directories.
Click to hide internal directories.