Documentation ¶
Index ¶
Constants ¶
View Source
const AMATEUR_GOLF = 5
View Source
const COLLEGE_BASKETBALL = 3
View Source
const COLLEGE_FOOTBALL = 2
View Source
const LEVEL_AMATEUR = "amateur"
View Source
const LEVEL_PRO = "pro"
View Source
const PRO_FOOTBALL = 1
View Source
const PRO_GOLF = 4
Variables ¶
This section is empty.
Functions ¶
func Save ¶
func Save(s *SportLevel) error
Types ¶
type SportLevel ¶
type SportLevelFull ¶
type SportLevelFull struct { SportLevelID int64 `db:"sport_level_id"` SportID int64 `db:"sport_id"` SportLevel string `db:"level"` SportName string `db:"name"` }
func ReadAllFull ¶
func ReadAllFull(orderBy string) ([]SportLevelFull, error)
ReadAllFull reads all records in the database, including the sport name
func ReadByIDFull ¶
func ReadByIDFull(ID int64) (*SportLevelFull, error)
ReadByIDFull reads by id column and also includes sport table info
Click to show internal directories.
Click to hide internal directories.