board

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlayerBoard

type PlayerBoard struct {
	GameID          string
	HomeTeamName    string
	HomeTeamPlayers []*stats.PlayerStats
	AwayTeamName    string
	AwayTeamPlayers []*stats.PlayerStats
}

PlayerBoard player board

func (*PlayerBoard) PlayerBoardPrinter

func (board *PlayerBoard) PlayerBoardPrinter() error

PlayerBoardPrinter player board printer

func (*PlayerBoard) PrintTable

func (board *PlayerBoard) PrintTable() error

PrintTable print table

func (*PlayerBoard) ResultParser

func (board *PlayerBoard) ResultParser(result string) error

ResultParser parse http json data

type SummaryBoard

type SummaryBoard struct {
	GameID         string
	GameTime       string
	AreanCity      string
	AreanName      string
	HomeTeamCode   string
	AwayTeamCode   string
	HomeTeamScores []int
	AwayTeamScores []int
	HomeTeamStats  stats.Stats
	AwayTeamStats  stats.Stats
}

SummaryBoard summary game borad

func (*SummaryBoard) PrintTable

func (board *SummaryBoard) PrintTable() error

PrintTable print table

func (*SummaryBoard) ResultParser

func (board *SummaryBoard) ResultParser(result string) error

ResultParser parse http json data

func (*SummaryBoard) SummaryBoardPrinter

func (board *SummaryBoard) SummaryBoardPrinter() error

SummaryBoardPrinter summary board printer

Jump to

Keyboard shortcuts

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