Versions in this module Expand all Collapse all v1 v1.0.0 Jul 24, 2026 Changes in this version + var ErrEmptyExpr = errors.New("empty expression not allowed") + var ErrInvalidFormat = errors.New("invalid format") + var ErrNumberOutOfBounds = errors.New("number was out of bounds") + var ErrOverflow = errors.New("value out of range for uint8 (overflow)") + var ErrParseDigits = errors.New("unable to parse digits") + var ErrUnknownAlias = errors.New("unknown alias for an expression") + type Expression struct + func NewExpression(expr string) (Expression, error) + func (expr Expression) Countdown(from time.Time) int64 + func (expr Expression) Due(of time.Time) bool + func (expr Expression) DueDay(of time.Time) bool + func (expr Expression) DueHour(of time.Time) bool + func (expr Expression) DueMinute(of time.Time) bool + func (expr Expression) DueMonth(of time.Time) bool + func (expr Expression) Next(from time.Time) time.Time + type Field struct + Range [2]uint8 + Value T + func ParseField[T fieldMask](tok string, bounds [2]uint8) (Field[T], error) + func (t Field[T]) List() []uint8 + func (t Field[T]) Match(val uint8) bool + func (t Field[T]) Next(from uint8) int