conv

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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