fastparse

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOverflow = errors.New("overflow")

Functions

func Atof64 added in v0.21.0

func Atof64(s string) (f float64, n int, err error)

func ParseFloat64

func ParseFloat64(s string) (float64, error)

ParseFloat64 parses floating-point number s.

It is equivalent to strconv.ParseFloat(s, 64) in case it succeeds, but on error it will return the best effort value of what it has parsed so far.

func ParseInt64

func ParseInt64(s string, base int) (int64, error)

ParseInt64 parses int64 number s.

It is equivalent to strconv.ParseInt(s, base, 64) in case it succeeds, but on error it will return the best effort value of what it has parsed so far.

func ParseUint64

func ParseUint64(s string, base int) (uint64, error)

func ParseUint64WithNeg added in v0.20.0

func ParseUint64WithNeg(s string, base int) (uint64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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