Go · Function
strconv.Atoi
strconv.Atoi converts a decimal string to an int. It returns the converted value and an error.
Last updated
Syntax
func Atoi(s string) (int, error)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
strconv.ParseIntstrconv.Itoastrconv.NumErrorstrconv.ErrRangestrconv.ErrSyntax