Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clamp ¶
func Clamp[T constraints.Integer](v, min, max T) T
func HexStringToBytes ¶
HexStringToBytes converts a hex string to a byte slice. The second return value is a slice of booleans indicating whether each byte was successfully parsed. If a byte could not be parsed, it will be set to 0.
func Max ¶
func Max[T constraints.Integer](a, b T) T
func Min ¶
func Min[T constraints.Integer](a, b T) T
Types ¶
Click to show internal directories.
Click to hide internal directories.