cmd

package
v0.0.0-...-09435b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "euro2016",
	Short: "UEFA Euro 2016 CLI",
	Long: "A client to follow UEFA Euro 2016.\n" +
		"Display competition schedule, live results, teams and rankings from the terminal.",
}

Functions

func Initialize

func Initialize()

Types

type Fixture

type Fixture struct {
	AwayTeam string    `json:"awayTeamName"`
	Date     time.Time `json:"date"`
	HomeTeam string    `json:"homeTeamName"`
	Matchday uint8     `json:"matchday"`
	Result   Result    `json:"result"`
	Status   string    `json:"status"`
}

type League

type League struct {
	Day       int8                  `json:"matchday"`
	Name      string                `json:"leagueCaption"`
	Standings map[string][]TeamRank `json:"standings"`
}

type LineUp

type LineUp struct {
	Teams []Team `json:"teams"`
}

type Result

type Result struct {
	GoalsAway uint8 `json:"goalsAwayTeam"`
	GoalsHome uint8 `json:"goalsHomeTeam"`
}

type Schedule

type Schedule struct {
	Fixtures []Fixture `json:"fixtures"`
}

type Team

type Team struct {
	Name string `json:"name"`
}

type TeamRank

type TeamRank struct {
	GoalAverage  int8   `json:"goalDifference"`
	GoalsFor     int8   `json:"goals"`
	GoalsAgainst int8   `json:"goalsAgainst"`
	Group        string `json:"group"`
	Played       int8   `json:"playedGames"`
	Points       int8   `json:"points"`
	Rank         int8   `json:"rank"`
	Team         string `json:"team"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL