Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Game ¶
type Game struct { Date time.Time `json:"date"` Number string `json:"gameNum"` HomeTeam string `json:"homeTeam"` HomeScore string `json:"homeScore"` AwayTeam string `json:"awayTeam"` AwayScore string `json:"awayScore"` }
Game represnts the data for a given game.
type Schedule ¶
type Schedule struct {
Games []Game `json:"games"`
}
Schedule represents the schedule data parsed from the http://events.gotsport.com/events/schedule.aspx page.
func GetSchedule ¶
GetSchedule queries the http://events.gotsport.com/events/schedule.aspx page and parses the HTML into a Schedule struct. Parameters should match the URL parameters to pass. Ex: params := map[string]string{ "EventID": "123", "GroupID": "123", "Gender": "Boys", "Age": "10", }
Click to show internal directories.
Click to hide internal directories.