ints

package
v0.4.56 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: ISC Imports: 4 Imported by: 0

Documentation

Overview

Package ints provide manipulation of integer types.

Index

Constants

This section is empty.

Variables

View Source
var ErrTooLarge = errors.New("value too large")

Functions

func ConvertU16

func ConvertU16[T constraints.Integer](integer T, label string) (u16 uint16, err error)

func ConvertU32

func ConvertU32[T constraints.Integer](integer T, label string) (u32 uint32, err error)

func ConvertU64

func ConvertU64[T constraints.Integer](integer T, label string) (u64 uint64, err error)

func ConvertU8

func ConvertU8[T constraints.Integer](integer T, label string) (u8 uint8, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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