season

package
v0.0.0-...-f5be08d Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Autumn string = "autumn"
)
View Source
const (
	Spring string = "spring"
)
View Source
const (
	Summer string = "summer"
)
View Source
const (
	Winter string = "winter"
)

Variables

View Source
var (
	Hemisphere = &Seasonality{
		North: North,
		South: South}
)

Functions

This section is empty.

Types

type Calendar

type Calendar map[time.Month]*Term

func (*Calendar) Fetch

func (calendar *Calendar) Fetch(month time.Month) *Term

func (*Calendar) Get

func (calendar *Calendar) Get(month time.Month) (*Term, bool)

type Months

type Months [3]time.Month

func NewMonths

func NewMonths(months ...time.Month) *Months

type Season

type Season struct {
	Begins     *chronograph.Time
	Ends       *chronograph.Time
	Hemisphere string
	Months     *Months
	Name       string
}

func NewSeason

func NewSeason(t *chronograph.Time, h *hemisphere.Hemisphere) *Season

type Seasonality

type Seasonality struct {
	North *Calendar
	South *Calendar
}

func (*Seasonality) Fetch

func (seasonality *Seasonality) Fetch(hemisphere *hemisphere.Hemisphere) *Calendar

func (*Seasonality) Get

func (seasonality *Seasonality) Get(hemisphere *hemisphere.Hemisphere) (*Calendar, string)

type Term

type Term struct {
	Hemisphere string
	Months     *Months
	Name       string
}

func NewTerm

func NewTerm(hemisphere, name string, months *Months) *Term

Jump to

Keyboard shortcuts

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