strconv

package
v0.0.0-...-fb2f31d Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatNumber

func FormatNumber[T Number](i T) (str string, err error)

FormatNumber 将数字转换为字符串

func ParseNumber

func ParseNumber[T Number](s string, i *T) error

ParseNumber 将字符串转换为数字

Types

type Float

type Float interface {
	float32 | float64
}

type Int

type Int interface {
	int | int8 | int16 | int32 | int64
}

type Number

type Number interface {
	Int | UInt | Float
}

type UInt

type UInt interface {
	uint | uint8 | uint16 | uint32 | uint64
}

Jump to

Keyboard shortcuts

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