how to make a string an int in go code example Example: convert string to int golang var s string i, err := strconv.Atoi(s)