Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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