cleanup and bug fixes

This commit is contained in:
filifa
2024-07-13 16:37:04 -05:00
parent 516ad5f467
commit 7347357aab
3 changed files with 74 additions and 28 deletions

View File

@@ -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