Documentation
¶
Overview ¶
Package util provides utility functions for type conversions and other common operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SafeIntToUint16 ¶
SafeIntToUint16 converts int to uint16 with overflow check.
func SafeIntToUint32 ¶
SafeIntToUint32 converts int to uint32 with overflow check.
func SafeIntToUint8 ¶
SafeIntToUint8 converts int to uint8 with overflow check.
func SafeUintToInt ¶
SafeUintToInt converts uint to int with overflow check.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.