Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Expose cron expression fields #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brunoluiz
Copy link

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant