From 883bfcf113d7654ddd832c2155b0036ebeff99dc Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Sat, 9 Jul 2016 21:06:13 +0200 Subject: [PATCH] Update examples to use Competition instead of SoccerSeason. --- README.md | 6 +++--- example_test.go | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e67ef31..ab947cc 100644 --- a/README.md +++ b/README.md @@ -31,14 +31,14 @@ func main() { WithToken("") // Get list of seasons... - seasons, err := client.SoccerSeasons().Do() + competitions, err := client.Competitions().Do() if err != nil { panic(err) } // ...and print them - for _, season := range seasons { - fmt.Println(season.Id, season.Caption) + for _, competition := range competitions { + fmt.Println(competition.Id, competition.Caption) } } diff --git a/example_test.go b/example_test.go index d3a7103..9057dcc 100644 --- a/example_test.go +++ b/example_test.go @@ -13,14 +13,14 @@ func Example() { WithToken("") // Get list of seasons... - seasons, err := client.SoccerSeasons().Do() + competitions, err := client.Competitions().Do() if err != nil { panic(err) } - // ...and print them - for _, season := range seasons { - fmt.Println(season.Id, season.Caption) + // ... and print them. + for _, competition := range competitions { + fmt.Println(competition.Id, competition.Caption) } } @@ -34,12 +34,12 @@ func ExampleClient() { // Do something with the client instance... // Here we just fetch the listed soccer seasons on the API - seasons, err := client.SoccerSeasons().Do() + competitions, err := client.Competitions().Do() if err != nil { panic(err) } - for _, season := range seasons { - fmt.Println(season.Id, season.Caption) + for _, competition := range competitions { + fmt.Println(competition.Id, competition.Caption) } }