holidays

package
v0.0.0-...-a8e72b8 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoHoliday = errors.New("No holiday")
)

Functions

func Easter

func Easter(t time.Time) time.Time

func Holiday

func Holiday(t time.Time, r Region) (holiday, error)

Types

type Region

type Region string
const (
	Bangkok    Region = "Bangkok"
	Berlin     Region = "Berlin"
	Bulgaria   Region = "Bulgaria"
	California Region = "California"
	NewYork    Region = "New York"
)

Jump to

Keyboard shortcuts

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