Versions in this module Expand all Collapse all v0 v0.4.1 May 27, 2019 Changes in this version + type AllPositions struct + Abbreviation string + Code string + Name string + Type string + type BoxScore struct + Info []LabelValue + Officials []BoxScoreOfficials + PitchingNotes []interface{} + Teams BoxScoreTeams + func FetchBoxScore(id string) *BoxScore + func (bs *BoxScore) Print() + type BoxScoreBattingStats struct + AtBats int + Avg string + BaseOnBalls int + CatchersInterference int + CaughtStealing int + Doubles int + FlyOuts int + GroundIntoDoublePlay int + GroundIntoTriplePlay int + GroundOuts int + HitByPitch int + Hits int + HomeRuns int + IntentionalWalks int + LeftOnBase int + Obp string + Ops string + Pickoffs int + Rbi int + Runs int + SacBunts int + SacFlies int + Slg string + StolenBases int + StrikeOuts int + TotalBases int + Triples int + type BoxScoreDetailedTeam struct + Abbreviation string + Active bool + AllStarStatus string + Division IDNameLink + FileCode string + FirstYearOfPlay string + ID int + League IDNameLink + Link string + LocationName string + Name string + Record BoxScoreRecord + Season int + ShortName string + Sport IDNameLink + SpringLeague SpringLeague + TeamCode string + TeamName string + Venue IDNameLink + type BoxScoreOfficials struct + Official IDFullNameLink + OfficialType string + type BoxScorePitchingStats struct + AirOuts int + AtBats int + BaseOnBalls int + BattersFaced int + CatchersInterference int + CaughtStealing int + CompleteGames int + Doubles int + EarnedRuns int + Era string + GroundOuts int + HitBatsmen int + Hits int + HomeRuns int + InheritedRunners int + InheritedRunnersScored int + InningsPitched string + IntentionalWalks int + Outs int + Pickoffs int + Rbi int + Runs int + SacBunts int + SacFlies int + SaveOpportunities int + Shutouts int + StolenBases int + StrikeOuts int + Triples int + Whip string + WildPitches int + type BoxScorePlayer struct + AllPositions []AllPositions + BattingOrder string + GameStatus BoxScorePlayerGameStatus + JerseyNumber string + ParentTeamID int + Person IDFullNameLink + Position Position + SeasonStats SeasonStats + Stats BoxScorePlayerStats + Status BoxScorePlayerStatus + type BoxScorePlayerBattingStats struct + AtBats int + Avg string + BaseOnBalls int + CatchersInterference int + CaughtStealing int + Doubles int + FlyOuts int + GamesPlayed int + GroundIntoDoublePlay int + GroundIntoTriplePlay int + GroundOuts int + HitByPitch int + Hits int + HomeRuns int + IntentionalWalks int + LeftOnBase int + Note string + Obp string + Ops string + Pickoffs int + Rbi int + Runs int + SacBunts int + SacFlies int + Slg string + StolenBasePercentage string + StolenBases int + StrikeOuts int + TotalBases int + Triples int + type BoxScorePlayerFieldingStats struct + Assists int + CaughtStealing int + Chances int + Errors int + Fielding string + PassedBall int + Pickoffs int + PutOuts int + StolenBasePercentage string + StolenBases int + type BoxScorePlayerGameStatus struct + IsCurrentBatter bool + IsCurrentPitcher bool + IsOnBench bool + IsSubstitute bool + type BoxScorePlayerPitchingStats struct + AirOuts int + AtBats int + BaseOnBalls int + BlownSaves int + CatchersInterference int + CaughtStealing int + CompleteGames int + Doubles int + EarnedRuns int + Era string + GamesFinished int + GamesPitched int + GamesPlayed int + GamesStarted int + GroundOuts int + HitBatsmen int + Hits int + HitsPer9Inn string + Holds int + HomeRuns int + InheritedRunners int + InheritedRunnersScored int + InningsPitched string + IntentionalWalks int + Losses int + Note string + Outs int + Pickoffs int + Rbi int + Runs int + SacBunts int + SacFlies int + SaveOpportunities int + Saves int + Shutouts int + StolenBasePercentage string + StolenBases int + StrikeOuts int + StrikeoutWalkRatio string + StrikeoutsPer9Inn string + Triples int + WalksPer9Inn string + Whip string + WildPitches int + WinPercentage string + Wins int + type BoxScorePlayerStats struct + Batting BoxScorePlayerBattingStats + Fielding BoxScorePlayerFieldingStats + Pitching BoxScorePlayerPitchingStats + type BoxScorePlayerStatus struct + Code string + Description string + type BoxScoreRecord struct + ConferenceGamesBack string + DivisionGamesBack string + DivisionLeader bool + GamesPlayed int + LeagueGamesBack string + LeagueRecord StandingsGenericRecord + Losses int + Records interface{} + SportGamesBack string + SpringLeagueGamesBack string + WildCardGamesBack string + WinningPercentage string + Wins int + type BoxScoreTeam struct + Batters []int + BattingOrder []int + Bench []int + Bullpen []int + Info []BoxScoreTeamInfo + Note []LabelValue + Pitchers []int + Players map[string]BoxScorePlayer + Team BoxScoreDetailedTeam + TeamStats TeamStats + func (bst *BoxScoreTeam) BattersTableData() [][]string + func (bst *BoxScoreTeam) PitchersTableData() [][]string + func (bst *BoxScoreTeam) PrintBattingTable() + func (bst *BoxScoreTeam) PrintPitchingTable() + type BoxScoreTeamInfo struct + FieldList []LabelValue + Title string + type BoxScoreTeams struct + Away BoxScoreTeam + Home BoxScoreTeam + type IDFullNameLink struct + FullName string + ID int + Link string + type LabelValue struct + Label string + Value string + type Position struct + Abbreviation string + Code string + Name string + Type string + type SeasonStats struct + Batting BoxScoreBattingStats + Fielding BoxScorePlayerFieldingStats + Pitching BoxScorePitchingStats + type SpringLeague struct + Abbreviation string + ID int + Link string + Name string + type TeamStats struct + Batting BoxScoreBattingStats + Fielding BoxScorePlayerFieldingStats + Pitching BoxScorePitchingStats v0.4.0 May 25, 2019 Changes in this version + type Client struct + BaseURL *url.URL + UserAgent string + func NewClient() *Client + func (c *Client) Do(req *http.Request, target interface{}) (*http.Response, error) + func (c *Client) NewRequest(method, path string, params map[string]string) (*http.Request, error) + type IDLink struct + ID int + Link string + type IDNameLink struct + ID int + Link string + Name string type LineScore + Balls int + Defense LineScoreDefense + InningState string + Offense LineScoreOffense + Outs int + Strikes int + type LineScoreDefense struct + Catcher LineScorePlayer + Center LineScorePlayer + First LineScorePlayer + Left LineScorePlayer + Pitcher LineScorePlayer + Right LineScorePlayer + Second LineScorePlayer + Shortstop LineScorePlayer + Team IDNameLink + Third LineScorePlayer + type LineScoreOffense struct + Batter LineScorePlayer + InHole LineScorePlayer + OnDeck LineScorePlayer + Pitcher LineScorePlayer + Second LineScorePlayer + Team IDNameLink + type LineScorePlayer struct + FullName string + ID int + Link string type LineScoreTeam + LeftOnBase int + type RosterResponse struct + Link string + Roster []struct{ ... } + RosterType string + TeamID int type Schedule + TotalEvents int + TotalGames int + TotalGamesInProgress int + TotalItems int type ScheduleDate + Events []interface{} + TotalEvents int + TotalGames int + TotalGamesInProgress int + TotalItems int type ScheduleGame + CalendarEventID string + Content struct{ ... } + DayNight string + DoubleHeader string + GameDate time.Time + GameNumber int + GamePk int + GameType string + GamedayType string + GamesInSeries int + IfNecessary string + IfNecessaryDescription string + IsTie bool + Link string + PublicFacing bool + RecordSource string + RescheduleDate time.Time + ScheduledInnings int + Season string + SeasonDisplay string + SeriesDescription string + SeriesGameNumber int + Tiebreaker string + Venue IDNameLink type ScheduleGameStatus + Reason string + type ScheduleTeam struct + IsWinner bool + LeagueRecord StandingsGenericRecord + Score int + SeriesNumber int + SplitSquad bool + Team IDNameLink + type ScheduleTeams struct + Away ScheduleTeam + Home ScheduleTeam type Standings + Records []StandingsRecord + func (std *Standings) FlattenToTeamRecordsSlice() []StandingsTeamRecord + type StandingsDetailedRecords struct + DivisionRecords []StandingsDivisionRecord + ExpectedRecords []StandingsGenericRecord + LeagueRecords []StandingsLeagueRecord + OverallRecords []StandingsGenericRecord + SplitRecords []StandingsGenericRecord + type StandingsDivisionRecord struct + Division IDNameLink + Losses int + Pct string + Wins int + type StandingsGenericRecord struct + Losses int + Pct string + Type string + Wins int + type StandingsLeagueRecord struct + League IDNameLink + Losses int + Pct string + Wins int + type StandingsRecord struct + Division IDNameLink + LastUpdated time.Time + League IDLink + Sport IDLink + StandingsType string + TeamRecords []StandingsTeamRecord + func RestrictDivision(records []StandingsRecord, division string) []StandingsRecord + func RestrictLeague(records []StandingsRecord, league string) []StandingsRecord + type StandingsStreak struct + StreakCode string + StreakNumber int + StreakType string type StandingsTeamRecord + ClinchIndicator string + Clinched bool + ConferenceGamesBack string + DivisionChamp bool + DivisionGamesBack string + DivisionLeader bool + DivisionRank string + EliminationNumber string + GamesPlayed int + HasWildcard bool + LastUpdated time.Time + LeagueGamesBack string + LeagueRank string + LeagueRecord StandingsLeagueRecord + Losses int + MagicNumber string + Records StandingsDetailedRecords + RunDifferential int + RunsAllowed int + RunsScored int + Season string + SportGamesBack string + SportRank string + SpringLeagueGamesBack string + WildCardEliminationNumber string + WildCardGamesBack string + WildCardRank string + WinningPercentage string + Wins int v0.3.2 Jun 3, 2018 Changes in this version type ScheduleGame + func (g ScheduleGame) ParseTime() time.Time v0.3.1 Jun 3, 2018 v0.3.0 Jun 3, 2018 Changes in this version + var Locs = []string + var Teams = []string + var TeamsWithLocs = []string + func FormatURL(t time.Time) string + func GetLineScore(url string, target *LineScore) error + func GetSchedule(url string, target *Schedule) error + func GetStandingsJSON(url string, target *StandingsResponse) error + func PrintBoxScoreTable(sg ScheduleGame, ls *LineScore) + type GameTeam struct + IsWinner bool + LeagueRecord GameTeamLeagueRecord + Score int + SeriesNumber int + SplitSquad bool + Team GameTeamTeam + type GameTeamLeagueRecord struct + Losses int + Pct string + Wins int + type GameTeamTeam struct + ID int + Link string + Name string + type LineScore struct + CurrentInning int + CurrentInningOrdinal string + InningHalf string + Innings []LineScoreInning + IsTopInning bool + ScheduledInnings int + Teams LineScoreTeams + func FetchLineScore(id string) *LineScore + type LineScoreInning struct + Away LineScoreInningTeam + Home LineScoreInningTeam + Num int + OrdinalNum string + type LineScoreInningTeam struct + Runs int + type LineScoreTeam struct + Errors int + Hits int + Runs int + type LineScoreTeams struct + Away LineScoreTeam + Home LineScoreTeam + type ProbablePitcher struct + FirstName string + ID string + LastName string + Losses int + Wins int + type Schedule struct + Dates []ScheduleDate + type ScheduleDate struct + Date string + Games []ScheduleGame + type ScheduleGame struct + ID int + Status ScheduleGameStatus + Teams ScheduleGameTeams + Time string + func FetchGames(t time.Time) []ScheduleGame + func (g ScheduleGame) FindTeam(team string) bool + func (g ScheduleGame) HasTeam(abbrv string) bool + func (g ScheduleGame) IsOver() bool + type ScheduleGameStatus struct + AbstractGameCode string + AbstractGameState string + CodedGameState string + DetailedState string + StatusCode string + type ScheduleGameTeams struct + Away GameTeam + Home GameTeam + type Standing struct + Division string + FirstName string + GamesBack float64 + GamesPlayed int + ID string + LastName string + League string + Lost int + OrdinalRank string + Rank int + Streak string + WinPercentage string + Won int + type Standings []Standing + func FetchStandings() Standings + func (std Standings) Len() int + func (std Standings) Less(i, j int) bool + func (std Standings) PrintMasterStandingsTable() + func (std Standings) PrintStandingsTable(league, division string) + func (std Standings) RestrictDivision(division string) Standings + func (std Standings) RestrictLeague(league string) Standings + func (std Standings) Swap(i, j int) + type StandingsRecords struct + TeamRecords []StandingsTeamRecords + type StandingsResponse struct + Date string + StandingList Standings + type StandingsTeamRecord struct + GamesBack string + Streak StandingsTeamRecordStreak + Team StandingsTeamRecordTeam + type StandingsTeamRecordStreak struct + StreakCode string + type StandingsTeamRecordTeam struct + ID int + Name string + type StandingsTeamRecords []StandingsTeamRecord