Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶ added in v1.0.6
Decode [str] to bytes using the given encoding If [str] is the empty string, returns a nil byte slice and nil error
func EncodeWithChecksum ¶ added in v1.4.12
EncodeWithChecksum bytes to a string using the given encoding format bytes may be nil, in which case it will be treated the same as an empty slice. This function includes a checksum in the encoded string.
func EncodeWithoutChecksum ¶ added in v1.4.12
EncodeWithoutChecksum bytes to a string using the given encoding format bytes may be nil, in which case it will be treated the same as an empty slice. Unlike EncodeWithChecksum, this function does not include a checksum in the encoded string.
Types ¶
type Encoding ¶ added in v1.0.3
type Encoding uint8
Encoding defines how bytes are converted to a string and vice versa
func (Encoding) MarshalJSON ¶ added in v1.0.6
func (*Encoding) UnmarshalJSON ¶ added in v1.0.6
Click to show internal directories.
Click to hide internal directories.