Skip to content

Glossary: Go Basics

Atoi

Also written: strconv.Atoi, A to i

A `strconv` function that turns text into an `int`, returning the number and an error. Priya's order form uses it to check quantities typed as text.

Where the book teaches it

Related terms

strconvItoa