Versions in this module Expand all Collapse all v1 v1.0.0 Nov 1, 2022 Changes in this version + func ToBytes(file TCXDB) ([]byte, error) + type Activities struct + Act []Activity + func ReadActivities(path string) (acts *Activities, err error) + type Activity struct + Creator *Device + Id time.Time + Laps []Lap + Notes string + Sport string + func ReadActivity(path string) (act *Activity, err error) + type Author struct + Build Build + LangID string + Name string + PartNumber string + func (a Author) String() string + type Build struct + Builder string + Time string + Type string + Version BuildVersion + type BuildVersion struct + BuildMajor int + BuildMinor int + VersionMajor int + VersionMinor int + type Device struct + Name string + ProductID string + UnitID uint + Version BuildVersion + type Lap struct + AvgHr float64 + Calories float64 + Dist float64 + Intensity string + MaxHr float64 + MaxSpeed float64 + Start string + TotalTime float64 + TriggerMethod string + Trk *Track + func ReadLap(path string) (lap *Lap, err error) + func (lap *Lap) MatchTime(sec float64) error + type LapZeroDistError struct + func (l *LapZeroDistError) Error() string + type LapZeroTimeError struct + func (l *LapZeroTimeError) Error() string + type TCXDB struct + Acts *Activities + Auth *Author + XMLName xml.Name + func ReadFile(path string) (db *TCXDB, err error) + type Track struct + Pt []Trackpoint + func ReadTpts(path string) (track *Track, err error) + type TrackSpline struct + func Spline(trk *Track) *TrackSpline + func (t *TrackSpline) Alt(dist float64) float64 + func (t *TrackSpline) Lat(dist float64) float64 + func (t *TrackSpline) Long(dist float64) float64 + func (t *TrackSpline) Speed(dist float64) float64 + type Trackpoint struct + Alt float64 + Cad float64 + Dist float64 + HR float64 + Lat float64 + Long float64 + Power float64 + Speed float64 + Time time.Time