moon

package
v0.0.0-...-9d27f3e Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EventDelta

func EventDelta(t int64) string

func FindEventsForYear

func FindEventsForYear(year int, location *time.Location) map[string]*Event

Types

type ChartData

type ChartData struct {
	Deltas []int
	Labels []string
}

func FindEventsForChart

func FindEventsForChart() ChartData

type Event

type Event struct {
	Timestamp int64
	FullMoon  bool
	Prev      *Event
	Next      *Event
}

func FindNextEvent

func FindNextEvent(t int64) *Event

func NewEvent

func NewEvent(ts int64, b bool) *Event

func (*Event) AsTime

func (e *Event) AsTime(location *time.Location) time.Time

func (*Event) Clone

func (e *Event) Clone() *Event

func (*Event) NewOrFull

func (e *Event) NewOrFull() string

func (*Event) String

func (e *Event) String() string

Jump to

Keyboard shortcuts

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