cleanup and bug fixes
This commit is contained in:
1 parent
516ad5f467
commit
7347357aab
3 files changed
+74
-28
No files matched your search
@@ -8,7 +8,37 @@ type FeedParams struct {
|
||||
GamePk string
|
||||
}
|
||||
|
||||
type Feed map[string]any
|
||||
type Feed struct {
|
||||
MetaData metadata
|
||||
LiveData livedata
|
||||
}
|
||||
|
||||
type metadata struct {
|
||||
TimeStamp string
|
||||
}
|
||||
|
||||
type livedata struct {
|
||||
Plays plays
|
||||
Linescore linescore
|
||||
}
|
||||
|
||||
type linescore struct {
|
||||
Teams teams
|
||||
}
|
||||
|
||||
type teams struct {
|
||||
Home team
|
||||
Away team
|
||||
}
|
||||
|
||||
type team struct {
|
||||
Runs json.Number
|
||||
}
|
||||
|
||||
type plays struct {
|
||||
AllPlays []Play
|
||||
CurrentPlay Play
|
||||
}
|
||||
|
||||
type Play struct {
|
||||
Result result
|
||||
|
||||
Reference in new issue
Block a user