Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vodolaz095/goweather
Golang parser for getting weather
https://github.com/vodolaz095/goweather
Last synced: about 4 hours ago
JSON representation
Golang parser for getting weather
- Host: GitHub
- URL: https://github.com/vodolaz095/goweather
- Owner: vodolaz095
- License: mit
- Created: 2014-08-04T00:55:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-04T10:17:18.000Z (over 10 years ago)
- Last Synced: 2024-06-20T17:35:51.451Z (5 months ago)
- Language: Go
- Size: 121 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Package to parse weather API
=====================================We simply get JSON data from this API endpoint and parse them
[http://api.openweathermap.org/data/2.5/weather?q=Moscow](http://api.openweathermap.org/data/2.5/weather?q=Moscow)Usage
=====================================```go
package main
import (
"time"
"fmt"
"github.com/vodolaz095/goweather"
)func main(){
//asyncronous call
var c chan goweather.Weather = make(chan goweather.Weather)
cities:= [3]string{
"London",
"Moscow",
"Klin",
}for i:=0; i