Documentation
¶
Overview ¶
Package safeint provides checked arithmetic for persisted non-negative counters and costs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNonNegativeInt64 ¶
AddNonNegativeInt64 returns the exact sum of values. Negative inputs and signed overflow are rejected instead of being allowed to wrap.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.