Skip to content

shawntoffel/go-pirateweather

Repository files navigation

go-pirateweather

Go Reference Go Report Card Build status

A Pirate Weather API client in Go.

go-pirateweather logo

Installing

This assumes you already have a working Go environment, if not please see this page first.

go get github.com/shawntoffel/go-pirateweather

Usage

Import the package into your project:

import (
    "github.com/shawntoffel/go-pirateweather"
)

Create a new pirateweather client:

client := pirateweather.Client{}

Build a request:

request := pirateweather.ForecastRequest{
  Latitude:  40.7128,
  Longitude: -74.0059,
}

Get a forecast:

ctx := context.Background()

// The api token can be found on your Pirate Weather dashboard.
response, err := client.Forecast(ctx, apiToken, request)

Documentation

Examples

Troubleshooting

Please use the GitHub Discussions tab for questions regarding this client library.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages