strconv

package
v1.47.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: OSL-3.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppendInt   = strconv.AppendInt
	AppendQuote = strconv.AppendQuote
	AppendUint  = strconv.AppendUint
	FormatFloat = strconv.FormatFloat
	Quote       = strconv.Quote
)

Functions

func Number

func Number[T Ordered](value T) string

func Percent

func Percent[T, U Ordered](value T, total U) string

func Rate

func Rate[T, U Ordered](value T, total U) string

func Size

func Size[T Ordered](value T) string

func String

func String(buf []byte) bool

mimesniff.spec.whatwg.org#binary-data-byte

Types

type Ordered

type Ordered interface {
	float64 | int | int64 | uint64
}

Jump to

Keyboard shortcuts

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