Commit Graph

5 Commits (c3d9a59b0d2a435e9cc0e043a4a2fd1479efdbba)

Author SHA1 Message Date
Icedream cb21cdb829 Provide fluent-style configuration methods as alternatives to the Set methods.
- Allows for quick and easy one-liners and also allows for temporarily changing configuration for a few requests.
- Update example codes to promote usage of fluent-style configuration.
2016-06-26 13:04:04 +02:00
Icedream e6526da3e0 Remove intermediate interface and provide Set methods for HttpClient and Token.
- Make the "Client" struct construction-friendly so it can be easily initialized with "new(footballdata.Client)".
- Rewrite example_test.go to show the respective new usage. Make it clear here that the SetToken call is optional.

This would fix #2.
2016-06-26 12:57:14 +02:00
Icedream 5418ecc69e Add separate examples for Client. 2016-06-26 12:03:11 +02:00
Christian 0ae7a5f5b6 Failing test due to API divergence 2016-06-25 12:29:32 +02:00
Icedream 055b2a4227 Initial commit. 2016-06-13 00:39:00 +02:00