https://github.com/sger/forecast-api
Forecast in Golang
https://github.com/sger/forecast-api
Last synced: 2 days ago
JSON representation
Forecast in Golang
- Host: GitHub
- URL: https://github.com/sger/forecast-api
- Owner: sger
- Created: 2015-12-19T16:09:44.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-19T16:32:21.000Z (over 10 years ago)
- Last Synced: 2025-02-24T02:52:26.354Z (over 1 year ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# forecast-api
Simple wrapper for Forecast api in Go (work in progress)
Checks the docs here: [https://developer.forecast.io/docs/v2](https://developer.forecast.io/docs/v2)
```
package main
import (
"fmt"
forecast "github.com/sger/forecast-api"
"log"
)
func main() {
lat := "39.3677979"
lon := "22.9559652"
f, err := forecast.Search("api-key", lat, lon)
if err != nil {
log.Fatal(err)
}
fmt.Printf("Forecast %d \n", f)
fmt.Printf("Summary %s \n", f.Currently.Summary)
}
```