package
Version:
v0.0.0-...-3371691
Opens a new window with list of versions in this module.
Published: Nov 11, 2023
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
DayStrings returns a slice of all String values of the enum
const (
Sunday Day = iota
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
)
DayString retrieves an enum value from the enum constants string name.
Throws an error if the param is not part of the enum.
DayValues returns all values of the enum
ParseDay parses a single day
ParseDays converts a days string into a slice of individual days
Days format:
day[-day][, ...]
IsADay returns "true" if the value is listed in the enum definition. "false" otherwise
type HourMin struct {
Hour, Min int
}
type TimeRange struct {
From, To HourMin
}
ForDay returns the zones for given day in ascending order
TimeTableMarkers returns list of zone start/end markers
Source Files
¶
Click to show internal directories.
Click to hide internal directories.