Skip to content

Commit

Permalink
Add SetOpen24Hours function to HoursHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
trobinson committed Oct 19, 2018
1 parent 12f9892 commit e9560cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hours.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ func (h *HoursHelper) SetUnspecified(weekday Weekday) {
h.SetHours(weekday, nil)
}

func (h *HoursHelper) SetOpen24Hours(weekday Weekday) {
h.SetHours(weekday, []string{HoursOpen24Hours})
}

func (h *HoursHelper) GetHours(weekday Weekday) []string {
switch weekday {
case Sunday:
Expand Down

0 comments on commit e9560cc

Please sign in to comment.