go-footballdata/api_methods.go

17 lines
281 B
Go
Raw Normal View History

2016-06-12 22:39:00 +00:00
package footballdata
import (
"encoding/json"
"net/url"
)
type request struct {
fdClient *Client
path string
urlValues url.Values
2016-06-12 22:39:00 +00:00
}
func (r request) doJson(method string) (*json.Decoder, ResponseMeta, error) {
return r.fdClient.doJson(method, r.path, r.urlValues)
2016-06-12 22:39:00 +00:00
}