Skip to content

ferueda/go-f1-fantasy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-f1-fantasy

go-github release (latest SemVer) GoDoc Test Status

go-f1-fantasy is a Go client library for accessing the F1 Fantasy Game API.

Installation

To install the library, simply

go get github.com/ferueda/go-f1-fantasy

Usage

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)

How to Contribute

  • Fork a repository
  • Add/Fix something
  • Check that tests are passing
  • Create PR

Current contributors:

License

This library is distributed under the MIT License found in the LICENSE file.