Parse an Age
Medium · Errors
strconv.Atoi returns (int, error). If the text is not an integer, or the number is outside 0…130, return an error. Use fmt.Errorf so the message is "invalid age". A successful parse returns the number and a nil error.
Write ParseAge(text) that returns (int, error).
Next: Swap Through Pointers