games

package
v0.0.0-...-8bbd0fc Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GamesURL = "https://api.collegefootballdata.com/games?seasonType=regular"

Functions

func RetrieveGames

func RetrieveGames(year string) int

func RetrieveGamesForWeek

func RetrieveGamesForWeek(year, week string) []int64

Types

type Game

type Game struct {
	Id             int64               `json:"id"`
	Season         int64               `json:"season"`
	Week           int64               `json:"week"`
	SeasonType     string              `json:"season_type"`
	StartDate      time.Time           `json:"start_date"`
	NeutralSite    bool                `json:"neutral_site"`
	ConferenceGame bool                `json:"conference_game"`
	Attendance     database.NullString `json:"attendance"`
	VenueId        int64               `json:"venue_id"`
	Venue          string              `json:"venue"`
	HomeTeam       string              `json:"home_team"`
	HomeConference string              `json:"home_conference"`
	HomePoints     int64               `json:"home_points"`
	AwayTeam       string              `json:"away_team"`
	AwayConference string              `json:"away_conference"`
	AwayPoints     int64               `json:"away_points"`
}

Jump to

Keyboard shortcuts

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