/moon

:new_moon_with_face: :waxing_crescent_moon: :first_quarter_moon: :waxing_gibbous_moon: :full_moon_with_face: :waning_gibbous_moon: :last_quarter_moon: :waning_crescent_moon: :new_moon_with_face:

Primary LanguageGoThe UnlicenseUnlicense

moon

GoDoc

Need to warn against deploys on a full moon?

Client needs a report generating every waxing gibbous?

No problem! This is a module in pure Go for calculating moon phase.

Usage

package main

import (
 "fmt"

 "github.com/liamg/moon"
)

func main() {
 phase := moon.GetPhase()
 fmt.Printf("The moon phase is currently %s - %s\n", phase, phase.Emoji())
 // Output example: The moon phase is currently Waxing Crescent - 🌒
}