Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronExpression ¶
type CronExpression struct { Minutes string Hours string DayOfMonth string Month string DayOfWeek string }
func Parse ¶
func Parse(src string) (*CronExpression, error)
func (*CronExpression) String ¶
func (c *CronExpression) String() string
type CronFieldConfig ¶
type CronFieldConfig struct {
// contains filtered or unexported fields
}
type Tokens ¶
type Tokens struct {
// contains filtered or unexported fields
}
func (*Tokens) List ¶
List starts at the next token and will keep consuming tokens while they are in a list. A list is separated by commas and 'and'. As an example both 'a,b,c' and 'a, b, and c' would result in the list ['a', 'b', 'c'].
func (*Tokens) Match ¶
Match is like like MatchOrNil but will return an error if the returned token is nil
func (*Tokens) MatchOrNil ¶
MatchOrNil is like Next() but checks that the next token (if it exists) matches one of the expected values
Click to show internal directories.
Click to hide internal directories.