๐Ÿ”งError Handling WorkshopWORKSHOP
1
2
3
4
5

Step 1

Write `parseAge(s string) (int, error)` that converts a string to an integer using `strconv.Atoi`. If the conversion fails, return the error directly. In `main`, call `parseAge` with both a valid string ("25") and an invalid one ("abc") and print any error.

โŒ˜ Enter (Mac) ยท Ctrl+Enter (Win/Linux)