Go Package strconv
Jump to navigation
Jump to search
External
Internal
Overview
The strconv
package contains functions to convert strings to and from other data types.
Functions
Atoi()
ASCII-to-int, converts a string representation of an integer to an int
type.
import "strconv"
a := "15"
b, error := strconv.Atoi(a)
println(b, error)
Itoa()
Converts an integer to its string representation.