Update example code in README.
parent
e6526da3e0
commit
850e9e7bbf
|
@ -27,7 +27,7 @@ import (
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// Create client
|
// Create client
|
||||||
client := footballdata.NewClient(http.DefaultClient)
|
client := new(footballdata.Client)
|
||||||
|
|
||||||
// Tell it to use our API token
|
// Tell it to use our API token
|
||||||
client.SetToken("<insert your api token here>")
|
client.SetToken("<insert your api token here>")
|
||||||
|
|
Loading…
Reference in New Issue