38 lines
		
	
	
		
			511 B
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			511 B
		
	
	
	
		
			Go
		
	
	
	
package statsapi
 | 
						|
 | 
						|
import (
 | 
						|
	"encoding/json"
 | 
						|
	"errors"
 | 
						|
	"log"
 | 
						|
	"strconv"
 | 
						|
	"strings"
 | 
						|
)
 | 
						|
 | 
						|
type FeedParams struct {
 | 
						|
	GamePk string
 | 
						|
}
 | 
						|
 | 
						|
type FeedResponse map[string]any
 | 
						|
 | 
						|
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
 | 
						|
}
 |