strconv

package
v0.0.0-...-150877d Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Itoa

func Itoa[T Int](i T) string

Itoa is equivalent to strconv.FormatInt(int64(i), 10).

func Parse

func Parse[T Int](s string, i *T) error

Parse is equivalent to strconv.ParseInt(s, 10, 32).

func ParseUint32

func ParseUint32(s string) (uint32, error)

ParseUint32 Deprecated: Use strconv.UParse instead.

func UItoa

func UItoa[T UInt](i T) string

UItoa is equivalent to strconv.FormatUint(uint64(i), 10).

func UParse

func UParse[T UInt](s string, i *T) error

UParse is equivalent to strconv.ParseUint(s, 10, 32).

Types

type Int

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

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