cast

package
v1.223.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 1 Imported by: 0

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 added in v1.208.0

func IntToUintPtr(value *int) *uint

func Ptr

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

func UintToInt

func UintToInt(value uint) int

UintToInt converts a uint to an int, handling potential overflow

func UintToIntPtr added in v1.208.0

func UintToIntPtr(value *uint) *int

func Val added in v1.216.0

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