Exercises & activities from the go workshop provided by Packt: https://courses.packtpub.com/courses/go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

30 lines
686 B

package main
import (
"fmt"
"time"
)
func main() {
dayBorn := time.Monday
switch dayBorn {
case time.Monday:
fmt.Println("Monday's child is fair of face")
case time.Tuesday:
fmt.Println("Tuesday's child is full of grace")
case time.Wednesday:
fmt.Println("Wednesday's child is fair of woe")
case time.Thursday:
fmt.Println("Thursday's child has far to go")
case time.Friday:
fmt.Println("Friday's child is loving and giving")
case time.Saturday:
fmt.Println("Saturday's child works hard for a living")
case time.Sunday:
fmt.Println("Sunday's child is bonny and blithe")
default:
fmt.Println("Error, day born not valid")
}
}