cleanup and bug fixes
This commit is contained in:
@@ -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