safeint

package
v0.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 2 Imported by: 0

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

func AddNonNegativeInt64(values ...int64) (int64, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL