game

package
v0.0.0-...-f32f021 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecimalToAmerican

func DecimalToAmerican(dOdds float64) int64

Convert a decimal style odd to an american style

Types

type Line

type Line struct {
	GameTime             string
	HomeTeam             string
	VisitingTeam         string
	HomeSpreadPoints     float64
	VisitingSpreadPoints float64
	HomeSpreadLine       int64
	VisitingSpreadLine   int64
	HomeMoneyLine        int64
	VisitingMoneyLine    int64
	GameOver             float64
	GameOverLine         int64
	GameUnderLine        int64
}

type Projection

type Projection struct {
	GameId                 string    `json:"gameId"`
	League                 string    `json:"league"`
	Source                 string    `json:"source"`
	HomeWinProbability     float64   `json:"homeWinProb"`
	VisitingWinProbability float64   `json:"visitingWinProb"`
	Home                   string    `json:"home"`
	Visiting               string    `json:"visiting"`
	GameDate               time.Time `json:"gameDate"`
	Season                 int       `json:"season"`
	Playoff                string    `json:"playoff"`
}

Jump to

Keyboard shortcuts

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