Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFileNotFound = fmt.Errorf("file not found") ErrInvalidCronFormat = fmt.Errorf("invalid cron format") )
Functions ¶
func InitTaskFile ¶ added in v0.1.1
func ParseRecurrence ¶
Types ¶
type Task ¶
type Task struct { Title string `json:"title"` Recurrence string `json:"recurrence"` Description string `json:"description"` }
Task represents a task Recurrence is a cron format but only supports Dom, Month, and Dow Dom: Day of the month: 1-31, "* / , - ?" Month: Month of the year: 1-12 or JAN-DEC, "* / , -" Dow: Day of the week: 0-6 or SUN-SAT, "* / , - ?"
Click to show internal directories.
Click to hide internal directories.