conv

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyToStr added in v0.8.0

func AnyToStr(val any) string

AnyToStr returns the string representation of an any value.

func BoolToStr

func BoolToStr(b bool) string

BoolToStr returns the string representation of a boolean value.

func FloatToStr

func FloatToStr[T constraints.Float](v T) string

FloatToStr returns the string representation of a float value.

func IntToStr

func IntToStr[T constraints.Signed](v T) string

IntToStr returns the string representation of a signed integer.

func StrToBool

func StrToBool(s string) bool

StrToBool parses a boolean value from a string.

func StrToFloat

func StrToFloat[T constraints.Float](s string) T

StrToFloat parses a float value from a string.

func StrToInt

func StrToInt[T constraints.Signed](s string) T

StrToInt parses a signed integer from a string.

func StrToUint

func StrToUint[T constraints.Unsigned](s string) T

StrToUint parses an unsigned integer from a string.

func UintToStr

func UintToStr[T constraints.Unsigned](v T) string

UintToStr returns the string representation of an unsigned integer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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