gomoon

Stars
6

gomoon

Need to fire a lambda on each full moon?

Typical business requirements of generating some client reports every waxing gibbous?

No problem! This is a package for calculating the approximate1 moon phase for all of your lunar needs.

Usage

package main

import (
	"fmt"

	"github.com/liamg/gomoon"
)

func main() {
	if gomoon.PhaseNow() == gomoon.FULL_MOON {
		fmt.Println("It's a full moon!")
	}
}

1: This is a dubious claim at best, moon phase calculations are half assed and may let you down if you require anything more than "vague" accuracy.