Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MinuteFactory is a factory to produce valid minute values MinuteFactory = Must(NewFactory("minute", 0, 59)) // HourFactory is a factory to produce valid hour values HourFactory = Must(NewFactory("hour", 0, 23)) // DayOfMonthFactory is a factory to produce valid day of month values DayOfMonthFactory = Must(NewFactory("dayOfMonth", 1, 31)) // MonthFactory is a factory to produce valid month values MonthFactory = Must(NewFactory("month", 1, 12)) // DayOfWeekFactory is a factory that can produce valid day of week values DayOfWeekFactory = Must(NewFactory("dayOfWeek", 0, 6)) )
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory is a type that can create Numberers for different strings
func NewFactory ¶
NewFactory will create a new factory for a given range, with a name, the name is used for errors.
type Provider ¶
type Provider interface { Number(numstr string) (Number, error) Range(startString, endString string) (Range, error) Any() Any }
Provider is an interface to abstract the Factory
Click to show internal directories.
Click to hide internal directories.