Hey everyone, I'm working through https://exercism.org/tracks/go/exercises/booking-up-for-beauty
I'm struggling with the first task.
// Schedule returns a time.Time from a string containing a date.
func Schedule(date string) (time.Time) {
return time.Parse("01/02/2006 15:04:00", date)
}
I'm getting an error because time.Parse returns a time.Time but also returns an error.
I need to only return the first return value from time.Parse, but can't work out how. Any pointers are appreciated.