Skip to content

liamg/moon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 - 🌒
}