package
1.24.4
Repository: https://pkg.go.dev/std
Documentation: pkg.go.dev

# Functions

AppendBool appends "true" or "false", according to the value of b, to dst and returns the extended buffer.
AppendFloat appends the string form of the floating-point number f, as generated by [FormatFloat], to dst and returns the extended buffer.
AppendInt appends the string form of the integer i, as generated by [FormatInt], to dst and returns the extended buffer.
AppendQuote appends a double-quoted Go string literal representing s, as generated by [Quote], to dst and returns the extended buffer.
AppendQuoteRune appends a single-quoted Go character literal representing the rune, as generated by [QuoteRune], to dst and returns the extended buffer.
AppendQuoteRuneToASCII appends a single-quoted Go character literal representing the rune, as generated by [QuoteRuneToASCII], to dst and returns the extended buffer.
AppendQuoteRuneToGraphic appends a single-quoted Go character literal representing the rune, as generated by [QuoteRuneToGraphic], to dst and returns the extended buffer.
AppendQuoteToASCII appends a double-quoted Go string literal representing s, as generated by [QuoteToASCII], to dst and returns the extended buffer.
AppendQuoteToGraphic appends a double-quoted Go string literal representing s, as generated by [QuoteToGraphic], to dst and returns the extended buffer.
AppendUint appends the string form of the unsigned integer i, as generated by [FormatUint], to dst and returns the extended buffer.
Atoi is equivalent to ParseInt(s, 10, 0), converted to type int.
CanBackquote reports whether the string s can be represented unchanged as a single-line backquoted string without control characters other than tab.
FormatBool returns "true" or "false" according to the value of b.
FormatComplex converts the complex number c to a string of the form (a+bi) where a and b are the real and imaginary parts, formatted according to the format fmt and precision prec.
FormatFloat converts the floating-point number f to a string, according to the format fmt and precision prec.
FormatInt returns the string representation of i in the given base, for 2 <= base <= 36.
FormatUint returns the string representation of i in the given base, for 2 <= base <= 36.
IsGraphic reports whether the rune is defined as a Graphic by Unicode.
IsPrint reports whether the rune is defined as printable by Go, with the same definition as [unicode.IsPrint]: letters, numbers, punctuation, symbols and ASCII space.
Itoa is equivalent to [FormatInt](int64(i), 10).
ParseBool returns the boolean value represented by the string.
ParseComplex converts the string s to a complex number with the precision specified by bitSize: 64 for complex64, or 128 for complex128.
ParseFloat converts the string s to a floating-point number with the precision specified by bitSize: 32 for float32, or 64 for float64.
ParseInt interprets a string s in the given base (0, 2 to 36) and bit size (0 to 64) and returns the corresponding value i.
ParseUint is like [ParseInt] but for unsigned numbers.
Quote returns a double-quoted Go string literal representing s.
QuotedPrefix returns the quoted string (as understood by [Unquote]) at the prefix of s.
QuoteRune returns a single-quoted Go character literal representing the rune.
QuoteRuneToASCII returns a single-quoted Go character literal representing the rune.
QuoteRuneToGraphic returns a single-quoted Go character literal representing the rune.
QuoteToASCII returns a double-quoted Go string literal representing s.
QuoteToGraphic returns a double-quoted Go string literal representing s.
Unquote interprets s as a single-quoted, double-quoted, or backquoted Go string literal, returning the string value that s quotes.
UnquoteChar decodes the first character or byte in the escaped string or character literal represented by the string s.

# Constants

IntSize is the size in bits of an int or uint value.

# Variables

ErrRange indicates that a value is out of range for the target type.
ErrSyntax indicates that a value does not have the right syntax for the target type.

# Structs

A NumError records a failed conversion.