10 lines
210 B
Go
10 lines
210 B
Go
package rules
|
|
|
|
import "time"
|
|
|
|
type BusinessDayChecker struct{}
|
|
|
|
func (b BusinessDayChecker) IsBusinessDay(t time.Time) bool {
|
|
weekday := t.Weekday()
|
|
return weekday != time.Saturday && weekday != time.Sunday
|
|
} |