DevBits
Home
Atlas
Play
About
Sign up
Log in
All
Go
strconv.Atoi()
Examples using...
strconv.Atoi()
Recent
Examples
Atoi in Go
by GoDoc
Go
strconv.Atoi
fmt
fmt.Printf
strconv
Atoi is equivalent to ParseInt(s, 10, 0), converted to type int.
Core Programming
Numbers
Parse Integer from String
Parse Integer from String in Go
by yhuang
Go
strconv.Atoi
fmt.Println
strconv.ParseInt
fmt
strconv
Parsing numbers from strings is a basic but common task in many programs; here’s how to do it in Go.