-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructs.go
80 lines (76 loc) · 2.02 KB
/
structs.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
package main
import (
"time"
)
type Fixtures struct {
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
Competition struct {
Href string `json:"href"`
} `json:"competition"`
} `json:"_links"`
Count int `json:"count"`
Fixtures []struct {
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
Competition struct {
Href string `json:"href"`
} `json:"competition"`
HomeTeam struct {
Href string `json:"href"`
} `json:"homeTeam"`
AwayTeam struct {
Href string `json:"href"`
} `json:"awayTeam"`
} `json:"_links"`
Date time.Time `json:"date"`
Status string `json:"status"`
Matchday int `json:"matchday"`
HomeTeamName string `json:"homeTeamName"`
AwayTeamName string `json:"awayTeamName"`
Result struct {
GoalsHomeTeam interface{} `json:"goalsHomeTeam"`
GoalsAwayTeam interface{} `json:"goalsAwayTeam"`
} `json:"result"`
Odds interface{} `json:"odds"`
} `json:"fixtures"`
}
type Team struct {
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
} `json:"_links"`
SearchQuery string `json:"searchQuery"`
Count int `json:"count"`
Teams []struct {
ID int `json:"id"`
Name string `json:"name"`
CurrentCompetition interface{} `json:"currentCompetition"`
CurrentLeague interface{} `json:"currentLeague"`
} `json:"teams"`
}
type Squad struct {
Links struct {
Self struct {
Href string `json:"href"`
} `json:"self"`
Team struct {
Href string `json:"href"`
} `json:"team"`
} `json:"_links"`
Count int `json:"count"`
Players []struct {
Name string `json:"name"`
Position string `json:"position"`
JerseyNumber int `json:"jerseyNumber"`
DateOfBirth string `json:"dateOfBirth"`
Nationality string `json:"nationality"`
ContractUntil string `json:"contractUntil"`
MarketValue interface{} `json:"marketValue"`
} `json:"players"`
}