go-f1-fantasy is a Go client library for accessing the F1 Fantasy Game API.
To install the library, simply
go get github.com/ferueda/go-f1-fantasy
import "github.com/ferueda/go-f1-fantasy/f1"
Construct a new client, then use the various services on the client to access different parts of the API. For example:
client := f1.NewClient(nil)
ctx := context.Background()
// list all drivers
drivers, err := client.Drivers.ListAll(ctx)
// get one team by id
team, err := client.Teams.GetOne(ctx, 3)
- Fork a repository
- Add/Fix something
- Check that tests are passing
- Create PR
Current contributors:
This library is distributed under the MIT License found in the LICENSE file.