go-footballdata/api_methods.go

17 lines
239 B
Go
Raw Normal View History

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