util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package util provides utility functions for type conversions and other common operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafeIntToUint16

func SafeIntToUint16(v int) uint16

SafeIntToUint16 converts int to uint16 with overflow check.

func SafeIntToUint32

func SafeIntToUint32(v int) uint32

SafeIntToUint32 converts int to uint32 with overflow check.

func SafeIntToUint8

func SafeIntToUint8(v int) uint8

SafeIntToUint8 converts int to uint8 with overflow check.

func SafeUintToInt

func SafeUintToInt(v uint) int

SafeUintToInt converts uint to int with overflow check.

Types

This section is empty.

Jump to

Keyboard shortcuts

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