Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TrimFields ¶
Types ¶
type Match ¶
type Match struct { gorm.Model `json:"-"` ID int `gorm:"primarykey" json:"id"` Day int `gorm:"default:0" json:"match_day" uri:"day"` Played bool `gorm:"default:false" json:"played"` AID int `json:"-"` BID int `json:"-"` ACountry Country `gorm:"foreignKey:AID" json:"country_a"` BCountry Country `gorm:"foreignKey:BID" json:"country_b"` Stage Stage `json:"-"` When time.Time `json:"when"` Assigned bool `gorm:"default:false" json:"-"` }
type MatchResult ¶
type Player ¶
type Player struct { gorm.Model `json:"-"` ID int `gorm:"primarykey" json:"id" uri:"id"` CountryID int `json:"-"` Country Country `json:"country"` Name string `json:"name" uri:"name"` Position string `json:"position"` Number int `gorm:"default:-1" json:"number"` Goals uint `gorm:"default:0" json:"goals" ` Yellow uint `gorm:"default:0" json:"yellows"` Red uint `gorm:"default:0" json:"reds"` Saves int `gorm:"default:-1" json:"saves"` }
Click to show internal directories.
Click to hide internal directories.