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