/moonphase

tiny go library to calculate the moon phase for a given time

Primary LanguageGo

Moonphase

Get the moon phase for a given time.

Usage

phase := moonphase.FindPhase(time.Now())

if phase == moonphase.Full {
    fmt.Println("The moon is full!")
}