Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DayStrings ¶
func DayStrings() []string
DayStrings returns a slice of all String values of the enum
func MonthStrings ¶
func MonthStrings() []string
MonthStrings returns a slice of all String values of the enum
Types ¶
type Day ¶
type Day int
func DayString ¶
DayString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func ParseDays ¶
ParseDays converts a days string into a slice of individual days Days format:
day[-day][, ...]
type Month ¶
type Month int
func MonthString ¶
MonthString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func ParseMonths ¶
ParseMonths converts a months string into a slice of individual months Months format:
month[-month][, ...]
type TimeRange ¶
type TimeRange struct {
From, To HourMin
}
func ParseTimeRange ¶
func ParseTimeRanges ¶
type Zones ¶
type Zones []Zone
func (Zones) ForDayAndMonth ¶
ForDay returns the zones for given day in ascending order
func (Zones) TimeTableMarkers ¶
TimeTableMarkers returns list of zone start/end markers
Click to show internal directories.
Click to hide internal directories.