Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalText ¶
func MarshalText[N constraints.Integer](n N) []byte
MarshalText converts a number to bytes.
func UnmarshalText ¶
func UnmarshalText[N constraints.Integer](b []byte) (N, error)
UnmarshalText unmarshals ASCII number bytes to a given numeric type. Behavior for when the number represented by b is > max N is undefined.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.