#How would you write this function

5 messages · Page 1 of 1 (latest)

lunar totem
glass scarab
#

you would want to check if err != nil in main too

safe dagger
#

that seems fine but nitpick
warp your errors

#
return TimeFormat{}, fmt.Errortf("error parsing minutes: %w", err)
#

that lets the consumer knows WHY what went wrong not just "error parsing int"