Documentation
¶
Overview ¶
Package safeconv provides safe integer conversion functions that clamp values at the target type's boundaries instead of silently overflowing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Int64ToInt32 ¶
Int64ToInt32 converts an int64 to int32, clamping at math.MaxInt32 / math.MinInt32.
func IntToInt32 ¶
IntToInt32 converts an int to int32, clamping at math.MaxInt32 / math.MinInt32.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.