intconv

package
v0.1.39 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package intconv provides checked integer conversion helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int64ToInt32

func Int64ToInt32(v int64) (int32, error)

Int64ToInt32 converts v to int32, returning an error if it overflows.

func IntToUint64

func IntToUint64(v int) (uint64, error)

IntToUint64 converts v to uint64, returning an error if v is negative.

func Uint64ToInt

func Uint64ToInt(v uint64) (int, error)

Uint64ToInt converts v to int, returning an error if it overflows.

func UintptrToInt

func UintptrToInt(v uintptr) (int, error)

UintptrToInt converts v to int, returning an error if it overflows.

Types

This section is empty.

Jump to

Keyboard shortcuts

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