strconv

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2016 License: MIT Imports: 1 Imported by: 7

README

Strconv GoDoc

This package contains string conversion function and is written in Go. It is much alike the standard library's strconv package, but it is specifically tailored for the performance needs within the minify package.

For example, the floating-point to string conversion function is approximately twice as fast as the standard library, but it is not as precise.

License

Released under the MIT license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendFloat

func AppendFloat(b []byte, f float64, prec int) ([]byte, bool)

func LenInt

func LenInt(i int64) int

func ParseFloat

func ParseFloat(b []byte) (float64, int)

Float parses a byte-slice and returns the float it represents. If an invalid character is encountered, it will stop there.

func ParseInt

func ParseInt(b []byte) (int64, int)

Int parses a byte-slice and returns the integer it represents. If an invalid character is encountered, it will stop there.

Types

This section is empty.

Jump to

Keyboard shortcuts

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