horse

package
v0.0.0-...-a55aa2f Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Career

type Career struct {
	TotalRaces  uint
	RacesWon    uint
	RacesSecond uint
	RacesThird  uint
	RacesFourth uint
}

func (*Career) Fill

func (c *Career) Fill(src string)

type Horse

type Horse struct {
	ID                 uint   `db:"id"`
	Name               string `db:"name"`
	Sex                string `db:"sex"`
	Born               Season `db:"born"`
	Height             map[Season]uint
	Owner              string  `db:"owner"`
	Breeder            string  `db:"breeder"`
	WinsTotal          float64 `db:"wins_total"`
	WinsBySeason       map[Season]float64
	RaceCareerBySeason map[Season]*Career
	RaceCareer         *Career
	RaceHistory        []RaceResult
}

func (*Horse) UnmarshalOld

func (h *Horse) UnmarshalOld(b []byte) error

type RaceResult

type RaceResult struct {
	R        *race.Race
	Position uint
	Result   string
}

type Season

type Season uint

Jump to

Keyboard shortcuts

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