cast

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 1 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntToUint

func IntToUint(value int) uint

IntToUint converts an int to a uint, handling negative values

func IntToUintPtr

func IntToUintPtr(value *int) *uint

func Ptr

func Ptr[T any](v T) *T

func UIntToUInt16

func UIntToUInt16(value uint) uint16

UIntToUInt16 converts a uint to an uint16, handling potential overflow

func UintToInt

func UintToInt(value uint) int

UintToInt converts a uint to an int, handling potential overflow

func UintToIntPtr

func UintToIntPtr(value *uint) *int

func Val

func Val[T any](v *T, def T) T

Types

This section is empty.

Jump to

Keyboard shortcuts

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