Examples using... strconv.Atoi()

Recent
Atoi is equivalent to ParseInt(s, 10, 0), converted to type int.
Parsing numbers from strings is a basic but common task in many programs; here’s how to do it in Go.