Full API documentation can be found at SMHI.
go get github.com/hsnkorkmaz/smhi-go
import smhi "github.com/hsnkorkmaz/smhi-go/services"
https://opendata-download-metobs.smhi.se/api.json
response, err := smhi.GetCategoryResult()
https://opendata-download-metobs.smhi.se/api/version/1.0.json
response, err := smhi.GetVersionResult("1.0")
https://opendata-download-metobs.smhi.se/api/version/1.0/parameter/1.json
response, err := smhi.GetParameterResult("1.0", "1")
https://opendata-download-metobs.smhi.se/api/version/1.0/parameter/1/station/159880.json
response, err := smhi.GetStationResult("1.0", "1", "159880")
https://opendata-download-metobs.smhi.se/api/version/1.0/parameter/1/station-set/all.json
response, err := smhi.GetStationSetResult("1.0", "1", "all")
response, err := smhi.GetPeriodStationResult("1.0", "1", "159880", "latest-months")
response, err := smhi.GetPeriodStationSetResult("1.0", "1", "all", "latest-hour")
response, err := smhi.GetDataStationResult("1.0", "1", "159880", "latest-months")
response, err := smhi.GetDataStationSetResult("1.0", "1", "all", "latest-hour")