divegrass

package
v0.0.0-...-4d6a1d2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URL = "http://api.football-data.org/v1/fixtures?timeFrame=%s&league=%s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Fixtures

type Fixtures struct {
	TimeFrameStart string `json:"timeFrameStart"`
	TimeFrameEnd   string `json:"timeFrameEnd"`
	Count          int    `json:"count"`
	Fixtures       []struct {
		Links struct {
			Self struct {
				Href string `json:"href"`
			} `json:"self"`
			Soccerseason struct {
				Href string `json:"href"`
			} `json:"soccerseason"`
			HomeTeam struct {
				Href string `json:"href"`
			} `json:"homeTeam"`
			AwayTeam struct {
				Href string `json:"href"`
			} `json:"awayTeam"`
		} `json:"_links"`
		Date         time.Time `json:"date"`
		Status       string    `json:"status"`
		Matchday     int       `json:"matchday"`
		HomeTeamName string    `json:"homeTeamName"`
		AwayTeamName string    `json:"awayTeamName"`
		Result       struct {
			GoalsHomeTeam int `json:"goalsHomeTeam"`
			GoalsAwayTeam int `json:"goalsAwayTeam"`
		} `json:"result"`
	} `json:"fixtures"`
}

Jump to

Keyboard shortcuts

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