Documentation
¶
Index ¶
- Constants
- func ParseDate(s string) (time.Time, error)
- func ParseDuration(s string) (time.Duration, error)
- type Achievement
- type AgeGroup
- type Country
- type Event
- type EventHistory
- type EventType
- type Events
- type Finisher
- type JCountry
- type JEvents
- type JEventsJson
- type JFeature
- type JGeometry
- type JProperties
- type LatLng
- type Parkrunner
- type Results
- type Sex
Constants ¶
View Source
const ( SEX_UNKNOWN = iota SEX_FEMALE SEX_MALE )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Achievement ¶
type Achievement int
const ( AchievementNone Achievement = iota AchievementFirst AchievementPB )
func ParseAchievement ¶
func ParseAchievement(s string) (Achievement, error)
type AgeGroup ¶
func ParseAgeGroup ¶
type Event ¶
type EventHistory ¶
type EventHistory struct {
Results []*Results
}
func ParseEventHistory ¶
func ParseEventHistory(buf []byte) (EventHistory, error)
type Events ¶
func ParseEvents ¶
type Finisher ¶
type Finisher struct {
*Parkrunner
AgeGroup AgeGroup
Time time.Duration
Achievement Achievement
NumberOfRuns int
NumberOfVolunteerings int
}
type JEventsJson ¶
type JFeature ¶
type JFeature struct {
Id int `json:"id"`
Type string `json:"type"`
Geometry JGeometry `json:"geometry"`
Properties JProperties `json:"properties"`
}
type JProperties ¶
type JProperties struct {
Name string `json:"eventname"`
LongName string `json:"EventLongName"`
ShortName string `json:"EventShortName"`
LocalizedLongName string `json:"LocalisedEventLongName"`
CountryCode int `json:"countrycode"`
SeriesId int `json:"seriesid"`
Location string `json:"EventLocation"`
}
type Parkrunner ¶
func (Parkrunner) IsUnknown ¶
func (p Parkrunner) IsUnknown() bool
Click to show internal directories.
Click to hide internal directories.