gopickem: github.com/ereichert/gopickem Index | Files | Directories

package gopickem

import "github.com/ereichert/gopickem"

Index

Package Files

historical_matchups.go matchup.go spread_record.go

func ReadMatchupsFromCSV Uses

func ReadMatchupsFromCSV(fileLocation string, spreadrecords map[string]SpreadRecord) ([]Matchup, error)

type HistoricalMatchup Uses

type HistoricalMatchup struct {
    AwayTeam          string
    HomeTeam          string
    Winner            string
    PointDifferential int
}

type Matchup Uses

type Matchup struct {
    AwayTeam SpreadRecord
    HomeTeam SpreadRecord
}

func (Matchup) PickWinnerAgainstTheSpread Uses

func (m Matchup) PickWinnerAgainstTheSpread() string

type Matchups Uses

type Matchups []Matchup

type MatchupsPerOpponent Uses

type MatchupsPerOpponent map[string][]HistoricalMatchup

type MatchupsPerTeam Uses

type MatchupsPerTeam map[string]MatchupsPerOpponent

func ReadHistoricalMatchupsFromCSV Uses

func ReadHistoricalMatchupsFromCSV(fileLocation string, weekOfSeason int) MatchupsPerTeam

type NewMatchup Uses

type NewMatchup struct {
    AwayTeam string
    HomeTeam string
}

type NewMatchups Uses

type NewMatchups []NewMatchup

func ReadMatchupsFromCSVFormattedRecords Uses

func ReadMatchupsFromCSVFormattedRecords(csvReader io.Reader) (matchups NewMatchups, err error)

type SpreadRecord Uses

type SpreadRecord struct {
    Team  string
    Total string
    Home  string
    Away  string
}

func (SpreadRecord) AwayWinningPercentage Uses

func (sr SpreadRecord) AwayWinningPercentage() float64

func (SpreadRecord) HomeWinningPercentage Uses

func (sr SpreadRecord) HomeWinningPercentage() float64

func (SpreadRecord) TotalWinningPercentage Uses

func (sr SpreadRecord) TotalWinningPercentage() float64

type SpreadRecords Uses

type SpreadRecords map[string]SpreadRecord

func ReadSpreadRecordsFromCSVFile Uses

func ReadSpreadRecordsFromCSVFile(fileLocation string) (SpreadRecords, error)

func ReadSpreadRecordsFromCSVFormattedRecords Uses

func ReadSpreadRecordsFromCSVFormattedRecords(csvReader io.Reader) (spreadRecords SpreadRecords, err error)

Directories

PathSynopsis
gopickem

Package gopickem imports 6 packages (graph) and is imported by 1 packages. Updated 2016-07-16. Refresh now. Tools for package owners.