github.com/wtfutil/wtf@v0.43.0/modules/football/types.go (about)

     1  package football
     2  
     3  type Team struct {
     4  	Name string `json:"name"`
     5  }
     6  
     7  type LeagueStandings struct {
     8  	Standings []struct {
     9  		Table []Table `json:"table"`
    10  	} `json:"standings"`
    11  }
    12  
    13  type Table struct {
    14  	Draw           int  `json:"draw"`
    15  	GoalDifference int  `json:"goalDifference"`
    16  	Lost           int  `json:"lost"`
    17  	Won            int  `json:"won"`
    18  	PlayedGames    int  `json:"playedGames"`
    19  	Points         int  `json:"points"`
    20  	Position       int  `json:"position"`
    21  	Team           Team `json:"team"`
    22  }
    23  
    24  type LeagueFixtuers struct {
    25  	Matches []Matches `json:"matches"`
    26  }
    27  
    28  type Matches struct {
    29  	AwayTeam Team   `json:"awayTeam"`
    30  	HomeTeam Team   `json:"homeTeam"`
    31  	Score    Score  `json:"score"`
    32  	Stage    string `json:"stage"`
    33  	Status   string `json:"status"`
    34  	Date     string `json:"utcDate"`
    35  }
    36  
    37  type Score struct {
    38  	FullTime ScoreByTime `json:"fullTime"`
    39  	HalfTime ScoreByTime `json:"halfTime"`
    40  	Winner   string      `json:"winner"`
    41  }
    42  
    43  type ScoreByTime struct {
    44  	AwayTeam int `json:"awayTeam"`
    45  	HomeTeam int `json:"homeTeam"`
    46  }