-
gronx
Lightweight, fast and dependency-free Cron expression parser (due checker, next/prev due date finder), task runner, job scheduler and/or daemon for Golang (tested on v1.13+) and standalone usage. If you are bold, use it to replace crontab entirely.
-
validator
:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Check https://github.com/adhocore/gronx, there are more cron libraries, check if they have something like IsValid or MustParse.
or if you want to use a strong validator (if you have other validation in the app), you could check « validator » module (https://github.com/go-playground/validator) and register a custom function.
This will print "Valid cron expression: */20 * * * *" to the console. You can find more information about this library, including installation instructions, on its GitHub page: https://github.com/robfig/cron