The strconv package converts between strings and other types:
import "strconv"
// String to int
n, err := strconv.Atoi("42") // n = 42
// Int to string
s := strconv.Itoa(42) // s = "42"
Atoi means "ASCII to integer". Itoa means "integer to ASCII". These are the most common conversions. The package has more functions for floats and other types.