https://github.com/lastchiliarch/cronparser
Crontab parser for golang(using yacc).
https://github.com/lastchiliarch/cronparser
cron crontab-parser golang goyacc parser
Last synced: 5 months ago
JSON representation
Crontab parser for golang(using yacc).
- Host: GitHub
- URL: https://github.com/lastchiliarch/cronparser
- Owner: lastchiliarch
- License: apache-2.0
- Created: 2021-03-01T14:56:55.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-01T15:24:20.000Z (about 5 years ago)
- Last Synced: 2024-05-04T08:40:28.023Z (about 2 years ago)
- Topics: cron, crontab-parser, golang, goyacc, parser
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cronparser
Crontab parser for golang(using yacc), you can use it to validate linux crontab etc.
# Usage
result, err := ParseCron("*/5 1-3 * JAN SAT", true)
if err != nil {
log.Println("parse error:", err)
return
}
fmt.Println(result)