golang date get start of week code example
Example: golang get day of week from time
weekday := time.Now().Weekday()
fmt.Println(weekday) // "Tuesday"
fmt.Println(int(weekday)) // "2"
weekday := time.Now().Weekday()
fmt.Println(weekday) // "Tuesday"
fmt.Println(int(weekday)) // "2"