Documentation ¶
Index ¶
- Variables
- func FetchTeamStats(teamKey string, year string) (DataTable, DataTable, error)
- func MustBeInt(s string) int
- func ReadCSV(filename string) ([][]string, error)
- func ReadTeamCache(team string, year string) (DataTable, DataTable, error)
- func ValidateTeamKey(teamKey string) bool
- func WriteCSV(data [][]string, filename string) error
- func WriteTeamCache(team string, year string, batDataTable DataTable, fldDataTable DataTable) error
- type DataTable
Constants ¶
This section is empty.
Variables ¶
View Source
var Teams map[string]int = map[string]int{
"ARI": 15,
"ATL": 16,
"BAL": 2,
"BOS": 3,
"CHC": 17,
"CHW": 4,
"CIN": 18,
"CLE": 5,
"COL": 19,
"DET": 6,
"HOU": 21,
"KCR": 7,
"LAA": 1,
"LAD": 22,
"MIA": 20,
"MIL": 23,
"MIN": 8,
"NYM": 25,
"NYY": 9,
"OAK": 10,
"PHI": 26,
"PIT": 27,
"SDP": 29,
"SEA": 11,
"SFG": 30,
"STL": 28,
"TBR": 12,
"TEX": 13,
"TOR": 14,
"WSN": 24,
}
Functions ¶
func FetchTeamStats ¶
func ValidateTeamKey ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.