Files
mlbstats/internal/statsapi/feed.go

34 lines
464 B
Go
Raw Normal View History

2024-07-01 23:16:44 -05:00
package statsapi
import (
"encoding/json"
)
type FeedParams struct {
GamePk string
}
2024-07-13 15:35:43 -05:00
type Feed map[string]any
2024-07-01 23:16:44 -05:00
type Play struct {
Result result
About about
AtBatIndex int
}
type result struct {
Event string
Description string
RBI int
AwayScore int
HomeScore int
}
type about struct {
AtBatIndex json.Number
IsTopInning bool
Inning json.Number
IsScoringPlay bool
CaptivatingIndex json.Number
}