Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LeagueConfig = []leagueData{
{
LeagueCode: "BL1",
LeagueName: "1. Bundesliga",
Country: "Germany",
},
{
LeagueCode: "PL",
LeagueName: "Premier League",
Country: "England",
},
{
LeagueCode: "PD",
LeagueName: "La Liga",
Country: "Spain",
},
}
Functions ¶
func CodeNotFound ¶
func CodeNotFound()
CodeNotFound used when the user enters an unknown flag code. It prints the available codes to stdout and exits (1)
func GetLeagueCodes ¶
func GetLeagueCodes() [][]string
GetLeagueCodes returns the leagues and their codes
func GetTeamCodesForWriter ¶
func GetTeamCodesForWriter() [][]string
GetTeamCodesForWriter returns the teams and their codes
func GetTeamConfigPath ¶
func GetTeamConfigPath() string
GetTeamConfigPath returns the path to the teams.yml config file
func ResetTeamConfigFile ¶
ResetTeamConfigFile truncates the team config yaml file
Types ¶
type TeamInfoConfig ¶
TeamInfoConfig holds the team information
func NewTeamConfig ¶
func NewTeamConfig(teamCode string) *TeamInfoConfig
NewTeamConfig returns a new TeamInfoConfig, populated based on the input of the arg teamCode
Click to show internal directories.
Click to hide internal directories.