cronexpr icon indicating copy to clipboard operation
cronexpr copied to clipboard

Expose cron expression fields

Open brunoluiz opened this issue 7 years ago • 0 comments

With the actual implementation the developer can't do other operations using the parsed cron expression. In this pull request I expose the Expression struct fields, which enables the developer to use the previously private fields.

Example:

expr := "0,10,20,30,40,50 4 * * *"
cron := cronexpr.MustParse(expr)
log.Info(cron.MinuteList)

brunoluiz avatar Aug 18 '18 16:08 brunoluiz