package main
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
func main() {
|
|
|
|
dayBorn := time.Sunday
|
|
|
|
switch dayBorn {
|
|
case time.Monday, time.Tuesday, time.Wednesday,
|
|
time.Thursday, time.Friday:
|
|
fmt.Println("Gorn on a weekday")
|
|
case time.Saturday, time.Sunday:
|
|
fmt.Println("Born on the weekend")
|
|
default:
|
|
fmt.Println("Error, day born not valid")
|
|
}
|
|
|
|
}
|