Documentation
¶
Overview ¶
Copyright © 2022 NAME HERE <EMAIL ADDRESS>
Copyright © 2022 Dylan Tientcheu [email protected]
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PlayByPlayCmd = &cobra.Command{ Use: "playbyplay [GameID]", Aliases: []string{"pbp", "play"}, Short: "List games today", Long: `Given a game id as the argument, display a UI for the game`, Run: func(cmd *cobra.Command, args []string) { id := args[0] playbyplay(id) }, Args: cobra.MinimumNArgs(1), }
View Source
var StandingCmd = &cobra.Command{ Use: "standings", Short: "Get the NBA standings for the current season", Run: func(cmd *cobra.Command, args []string) { ui.StartStanding() }, }
Functions ¶
Types ¶
type CommonAllPlayersResponse ¶
type CommonAllPlayersResponse struct {
CommonAllPlayers []Player `json:"CommonAllPlayers"`
}
type GameLogEntry ¶
type GameLogEntry struct { AST int `json:"AST"` BLK int `json:"BLK"` DREB int `json:"DREB"` FG3A int `json:"FG3A"` FG3M int `json:"FG3M"` FG3_PCT float64 `json:"FG3_PCT"` FGA int `json:"FGA"` FGM int `json:"FGM"` FG_PCT float64 `json:"FG_PCT"` FTA int `json:"FTA"` FTM int `json:"FTM"` FT_PCT float64 `json:"FT_PCT"` GAME_DATE string `json:"GAME_DATE"` Game_ID string `json:"Game_ID"` MATCHUP string `json:"MATCHUP"` MIN int `json:"MIN"` OREB int `json:"OREB"` PF int `json:"PF"` PLUS_MINUS int `json:"PLUS_MINUS"` PTS int `json:"PTS"` Player_ID int `json:"Player_ID"` REB int `json:"REB"` SEASON_ID string `json:"SEASON_ID"` STL int `json:"STL"` TOV int `json:"TOV"` VIDEO_AVAILABLE int `json:"VIDEO_AVAILABLE"` WL string `json:"WL"` }
type Player ¶
type Player struct { DISPLAY_FIRST_LAST string `json:"DISPLAY_FIRST_LAST"` DISPLAY_LAST_COMMA_FIRST string `json:"DISPLAY_LAST_COMMA_FIRST"` FROM_YEAR int `json:"FROM_YEAR"` GAMES_PLAYED_FLAG string `json:"GAMES_PLAYED_FLAG"` OTHERLEAGUE_EXPERIENCE_CH string `json:"OTHERLEAGUE_EXPERIENCE_CH"` PERSON_ID int `json:"PERSON_ID"` PLAYERCODE string `json:"PLAYERCODE"` PLAYER_SLUG string `json:"PLAYER_SLUG"` ROSTERSTATUS int `json:"ROSTERSTATUS"` TEAM_ABBREVIATION string `json:"TEAM_ABBREVIATION"` TEAM_CITY string `json:"TEAM_CITY"` TEAM_CODE string `json:"TEAM_CODE"` TEAM_ID int64 `json:"TEAM_ID"` TEAM_NAME string `json:"TEAM_NAME"` TEAM_SLUG string `json:"TEAM_SLUG"` TO_YEAR int `json:"TO_YEAR"` }
Click to show internal directories.
Click to hide internal directories.