From 6eb67ba54119d404a98cda8546d8db80073b013a Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Sat, 9 Jul 2016 21:35:29 +0200 Subject: [PATCH] Clarification of documentation for "Competitions" and "SoccerSeasons" methods. This commit makes clear that the list methods for the Competition/SoccerSeason resource only return data for the current season or for any targeted season. Fetching the complete list is not possible. --- req_competitions.go | 2 +- req_soccerseasons.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/req_competitions.go b/req_competitions.go index c414f66..f9339db 100644 --- a/req_competitions.go +++ b/req_competitions.go @@ -21,7 +21,7 @@ func (r CompetitionsRequest) Do() (s CompetitionList, err error) { return } -// Competitions prepares a request to fetch the complete list of soccer seasons. +// Competitions prepares a request to fetch the list of competitions for the current season or for any specified season (via the "Season" submethod). func (c *Client) Competitions() CompetitionsRequest { return CompetitionsRequest{c.req("competitions")} } diff --git a/req_soccerseasons.go b/req_soccerseasons.go index bd61a82..5cc2983 100644 --- a/req_soccerseasons.go +++ b/req_soccerseasons.go @@ -29,7 +29,7 @@ func (r SoccerSeasonsRequest) Do() (s SoccerSeasonList, err error) { // DEPRECATED. // -// SoccerSeasons prepares a request to fetch the complete list of soccer seasons. +// SoccerSeasons prepares a request to fetch the list of soccer seasons for the current season or for any specified season (via the "Season" submethod). func (c *Client) SoccerSeasons() SoccerSeasonsRequest { return SoccerSeasonsRequest{c.req("soccerseasons")} }