An open API service indexing awesome lists of open source software.

https://github.com/liamg/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:
https://github.com/liamg/moon

moon moon-phase waste-of-time

Last synced: 3 months ago
JSON representation

: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:

Awesome Lists containing this project

README

          

# moon

[![GoDoc](https://godoc.org/github.com/liamg/moon?status.svg)]()

Need to warn against deploys on a full moon?

Client needs a report generating every [waxing gibbous](https://en.wikipedia.org/wiki/Waxing_gibbous)?

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

## Usage

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

---