Versions in this module Expand all Collapse all v0 v0.0.2 Aug 31, 2020 v0.0.1 Aug 31, 2020 Changes in this version + type Context struct + Day *int + Duration time.Duration + Hour *int + Location *time.Location + Minute *int + Month *int + Second *int + Text string + Weekday *int + Year *int + func (c *Context) Time(t time.Time) (time.Time, error) + type F struct + Applier func(*Match, *Context, *Options, time.Time) (bool, error) + RegExp *regexp.Regexp + func (f *F) Find(text string) *Match + type Match struct + Applier func(*Match, *Context, *Options, time.Time) (bool, error) + Captures []string + Left int + Order float64 + Right int + Text string + func (m *Match) Apply(c *Context, o *Options, t time.Time) (bool, error) + func (m Match) String() string + type MatchByIndex []*Match + func (m MatchByIndex) Len() int + func (m MatchByIndex) Less(i, j int) bool + func (m MatchByIndex) Swap(i, j int) + type MatchByOrder []*Match + func (m MatchByOrder) Len() int + func (m MatchByOrder) Less(i, j int) bool + func (m MatchByOrder) Swap(i, j int) + type Options struct + Afternoon int + Distance int + Evening int + MatchByOrder bool + Morning int + Noon int + type Rule interface + Find func(string) *Match + type Strategy int + const Merge + const Override + const Skip