Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 617 Bytes

README.md

File metadata and controls

33 lines (25 loc) · 617 Bytes

meteolt

Meteo.lt API library for go.

Install

go get github.com/PauliusLozys/meteolt

Example

import (
	"context"
	"log"

	"github.com/PauliusLozys/meteolt"
)

func main() {
	forecast, err := meteolt.GetWeatherForecast(context.Background(), "kaunas", meteolt.ForecastTypeLongTerm)
	if err != nil {
		log.Fatal(err)
	}

	log.Println(forecast.Place.Name)
}

Meteo LT API documentation

https://api.meteo.lt/

CLI TOOL

Separate CLI tool which displays weather forecasts in a table format find here.