Documentation ¶
Index ¶
- Constants
- func TeamPlayers(team *Team, teamSquadDoc *goquery.Document)
- type Booking
- type Goal
- type League
- type LineUp
- type Match
- type Player
- type Statistic
- type Substitution
- type Team
- func (team Team) Age() (float64, float64)
- func (team Team) ExpiringContracts() int
- func (team *Team) GetName(teamInfoDoc *goquery.Document)
- func (team *Team) GetPlayers(teamSquadDoc *goquery.Document)
- func (team Team) MarketValue() (float64, float64)
- func (team Team) PlayersByPosition(positions []string) []Player
- func (team Team) Salary() (float64, float64)
- func (team Team) Top15Players() []Player
Constants ¶
View Source
const ( Name = iota Country = iota TeamName = iota Age = iota Position = iota Weight = iota Height = iota BirthWeek = iota MarketValue = iota Foot = iota Salary = iota Contract = iota Loyalty = iota Bookings = iota )
profile mapping
Variables ¶
This section is empty.
Functions ¶
func TeamPlayers ¶
Types ¶
type League ¶
type Match ¶
type Match struct { ID int `json:"match_id"` Season int `json:"season"` Matchday int `json:"matchday"` Attendance int `json:"attendance"` Competition string `json:"competition"` Date time.Time `json:"date"` LineUps []LineUp `json:"line_ups"` Statistics []Statistic `json:"statistics"` }
func (*Match) FetchStatistic ¶
type Player ¶
type Player struct { ID int `json:"id"` TeamID int `json:"team_id"` Name string `json:"name"` Country string `json:"country"` BirthSeason float64 `json:"birth_season"` // 24 BirthWeek float64 `json:"birth_week"` // 38 Salary float64 `json:"salary"` // - MarketValue float64 `json:"market_value"` // - Weight float64 `json:"weight"` // 35 Height float64 `json:"height"` // 27 Talent float64 `json:"talent"` Fitness float64 `json:"fitness"` Overall float64 `json:"overall"` TalentDiscovered bool `json:"talent_discovered"` ContractExpiring bool `json:"contract_expiring"` Positions []string `json:"positions"` Abilities map[string]float64 `json:"abilities"` }
func (*Player) GetProfile ¶
type Statistic ¶
type Statistic struct { TeamID int `json:"team_id"` Team string `json:"team_name"` Possession int `json:"ball_possession"` Attempts int `json:"goal_attempts"` Tackles int `json:"tackles"` Corners int `json:"corners"` Goals []Goal `json:"goals"` Bookings []Booking `json:"bookings"` Substitutions []Substitution `json:"substitution"` }
type Substitution ¶
type Team ¶
type Team struct { ID int `json:"team_id"` Name string `json:"team_name"` Players []Player `json:"players"` }
func (Team) ExpiringContracts ¶
func (*Team) GetPlayers ¶
func (Team) PlayersByPosition ¶
func (Team) Top15Players ¶
Click to show internal directories.
Click to hide internal directories.