Skip to content
/ gomoon Public

🌚 🌒 🌓 🌔 🌝 🌖 🌗 🌘 🌚

Notifications You must be signed in to change notification settings

liamg/gomoon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gomoon

Build Status GoDoc

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.

About

🌚 🌒 🌓 🌔 🌝 🌖 🌗 🌘 🌚

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages