From 9d3290ff36bbd44d0a4fdf3d30b08134306a8e55 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Sun, 26 Jun 2016 12:11:24 +0200 Subject: [PATCH] Update example code in README - Replaced AuthToken member assignment to SetToken call. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ba5cb89..7a0e026 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ func main() { client := footballdata.NewClient(http.DefaultClient) // Tell it to use our API token - client.AuthToken = "" + client.SetToken("") // Get list of seasons... seasons, err := client.SoccerSeasons().Do() @@ -44,4 +44,4 @@ func main() { } } -``` \ No newline at end of file +```