playerstats

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func RetrieveGamePlayerStats

func RetrieveGamePlayerStats(year string, gameId int64)

Types

type GameStats

type GameStats struct {
	Id    int         `json:"id"`
	Teams []TeamStats `json:"teams"`
}

type GroupStats

type GroupStats struct {
	Name  string      `json:"name"`
	Types []TypeStats `json:"types"`
}

type PlayerStats

type PlayerStats struct {
	Id   string `json:"id"`
	Name string `json:"name"`
	Stat string `json:"stat"`
}

type TeamStats

type TeamStats struct {
	School     string       `json:"school"`
	Conference string       `json:"conference"`
	HomeAway   string       `json:"homeAway"`
	Points     int          `json:"points"`
	Categories []GroupStats `json:"categories"`
}

type TypeStats

type TypeStats struct {
	Name     string        `json:"name"`
	Athletes []PlayerStats `json:"athletes"`
}

Jump to

Keyboard shortcuts

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