strconv.Atoi() throwing error when given a string
The error is telling you that the two return values from strconv.Atoi (int and error) are used in a single value context (the assignment to time). Change the code to: Use the blank identifier to ignore the error return value: