Versions in this module Expand all Collapse all v1 v1.0.0 Jan 18, 2023 Changes in this version + const NBA_REFERENCE_ENDPOINT + func GetMockServer(t *testing.T) *httptest.Server + type AverageStats struct + AssistsPerGame float64 + BlocksPerGame float64 + FGP float64 + FTP float64 + PlayerID string + PointsPerGame float64 + ReboundsPerGame float64 + StealsPerGame float64 + TPP float64 + TurnoversPerGame float64 + type Boxscore struct + HomeTeam string + StatsList []Stats + VistorTeam string + type Client struct + Url string + func NewClient(opts ...Option) *Client + func (c Client) GetPlayers(year int, teams ...string) ([]Player, error) + func (c Client) GetTeams() ([]Team, error) + type Game struct + HomeTeam string + ID string + VistorTeam string + type Option func(client *Client) + func WithUrl(url string) Option + type Player struct + FirstName string + ID string + LastName string + Position Position + TeamID string + type Position string + const Center + const Forward + const Guard + const PointGuard + const PowerForward + const SmallForward + const SmallGuard + type Stats struct + Assists int + Blocks int + FGA int + FGM int + FTA int + FTM int + FirstName string + Fouls int + LastName string + PlayerID string + Points int + Rebounds int + Steals int + TPA int + TPM int + TeamID string + Turnovers int + type Team struct + ID string + Name string + Tricode string