otiai10 / openweathermap

https://openweathermap.org/api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenWeatherMap API Client for Go

Go codecov

package main

import (
  "github.com/otiai10/openweathermap"
)
func main() {
  client := openweathermap.New(API_KEY)
  res, _ := client.ByCityName("Tokyo")
  fmt.Println(res.Forecasts[0].Weather[0].Main)
  // Clouds
}

About

https://openweathermap.org/api


Languages

Language:Go 100.0%