package
0.0.0-20241118162539-34caac850176
Repository: https://go.googlesource.com/perf
Documentation: pkg.go.dev

# README

This is a partial copy of strconv.Parse* from Go 1.13.6, converted to use []byte (and stripped of the overly complex extFloat fast-path). It makes me sad that we have to do this, but see golang.org/issue/2632. We can eliminate this if golang.org/issue/43752 (or more generally, golang.org/issue/2205) gets fixed.

# Functions

Atoi is equivalent to ParseInt(s, 10, 0), converted to type int.
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.

# 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.