week

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package week provides a timer that matches the week of the year.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWeekIn

func NewWeekIn(weeks ...time.Weekday) (timer.Timer, error)

NewWeekIn creates a timer that matches the week of the year

Example: NewWeekIn(time.Monday, time.Wednesday, time.Friday) means in Monday, Wednesday or Friday
Example: NewWeekIn(time.Sunday, time.Monday) means in Sunday or Monday

func NewWeekRange

func NewWeekRange(start, end time.Weekday) (timer.Timer, error)

NewWeekRange creates a timer that matches the week of the year

Example: NewWeekRange(time.Monday, time.Wednesday) means between Monday and Wednesday
Example: NewWeekRange(time.Sunday, time.Monday) means between Sunday and Monday

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL