cast

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package cast provides narrow numeric conversion helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertIntToUint32

func ConvertIntToUint32(i int) (uint32, error)

ConvertIntToUint32 safely casts an int to uint32.

func ConvertStringToUint8

func ConvertStringToUint8(s string) (uint8, error)

ConvertStringToUint8 parses a base-10 string and returns a uint8 value.

func ConvertStringToUint32

func ConvertStringToUint32(s string) (uint32, error)

ConvertStringToUint32 parses a base-10 string and returns a uint32 value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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