go-footballdata/req_soccerseason.go

19 lines
373 B
Go
Raw Normal View History

2016-06-12 22:39:00 +00:00
package footballdata
type SoccerSeasonRequest struct{ request }
// Do executes the request.
2016-06-12 22:39:00 +00:00
func (r SoccerSeasonRequest) Do() (s SoccerSeason, err error) {
d, _, err := r.doJson("GET")
if err != nil {
return
}
err = d.Decode(&s)
return
}
func (c *client) SoccerSeason(id uint64) SoccerSeasonRequest {
2016-06-13 17:47:09 +00:00
return SoccerSeasonRequest{c.req("soccerseasons/%d", id)}
2016-06-12 22:39:00 +00:00
}