Versions in this module Expand all Collapse all v0 v0.3.1 Feb 19, 2020 v0.3.0 Jan 11, 2020 Changes in this version + func BeginOf(t time.Time, unit UnitOfTime) time.Time + func DayInList(t time.Time, days []int) bool + func DayInRange(t time.Time, minDay, maxDay int) bool + func EndOf(t time.Time, unit UnitOfTime) time.Time + func HourInList(t time.Time, hours []int) bool + func HourInRange(t time.Time, minHour, maxHour int) bool + func MinuteInList(t time.Time, minutes []int) bool + func MinuteInRange(t time.Time, minMinute, maxMinute int) bool + func MonthInList(t time.Time, months []time.Month) bool + func MonthInRange(t time.Time, minMonth, maxMonth time.Month) bool + func Retry(f func() (bool, error), rs RetryStrategy) error + func SecondInList(t time.Time, seconds []int) bool + func SecondInRange(t time.Time, minSecond, maxSecond int) bool + func WeekdayInList(t time.Time, weekdays []time.Weekday) bool + func WeekdayInRange(t time.Time, minWeekday, maxWeekday time.Weekday) bool + func YearInList(t time.Time, years []int) bool + func YearInRange(t time.Time, minYear, maxYear int) bool + type RetryStrategy struct + Break time.Duration + BreakIncrement time.Duration + Count int + Timeout time.Duration + func LongAttempt() RetryStrategy + func MediumAttempt() RetryStrategy + func ShortAttempt() RetryStrategy + type UnitOfTime int + const Day + const Hour + const Minute + const Month + const Second + const Year Other modules containing this package tideland.dev/go