Discover Packages
github.com/syurchen93/api-football-client
response
leagues
package
Version:
v0.0.0-...-702d5d8
Opens a new window with list of versions in this module.
Published: Apr 27, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Country struct {
Name string `mapstructure:"name"`
Code string `mapstructure:"code"`
Flag string `mapstructure:"flag"`
}
type Coverage struct {
Fixtures struct {
Events bool `json:"events"`
Lineups bool `json:"lineups"`
StatisticsFixtures bool `json:"statistics_fixtures"`
StatisticsPlayers bool `json:"statistics_players"`
} `json:"fixtures"`
Standings bool `json:"standings"`
Players bool `json:"players"`
TopScorers bool `json:"top_scorers"`
TopAssists bool `json:"top_assists"`
TopCards bool `json:"top_cards"`
Injuries bool `json:"injuries"`
Predictions bool `json:"predictions"`
Odds bool `json:"odds"`
}
type League struct {
ID int `json:"id"`
Name string `json:"name"`
Country string `json:"country,omitempty"`
Type string `json:"type"`
Logo string `json:"logo"`
Flag string `json:"flag,omitempty"`
Season int `json:"season,omitempty"`
}
type LeagueData struct {
League League `json:"league"`
Country Country `json:"country"`
Seasons []Season `json:"seasons"`
}
type Season struct {
Year int `json:"year"`
Start time .Time `json:"start"`
End time .Time `json:"end"`
Current bool `json:"current"`
Coverage Coverage `json:"coverage"`
}
type SeasonYear struct {
Year int
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.