Documentation
¶
Index ¶
- Variables
- func GetActivityLocation() (string, string, error)
- func GetAssetLibraryPath() (string, error)
- func GetFromHeader[T any](dir string, field string) (T, error)
- func GetStartLocationQr() (string, error)
- func GetTextLibraryPath() (string, error)
- type Activity
- type Header
- type Meta
- type Tourenbuch
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFieldNotFound = errors.New("field not found in struct") ErrTypeNotAssert = errors.New("could not assert type in struct") )
View Source
var ( ErrTextLocationNotInitialized = errors.New("textLocation not properly initialized") ErrDateNotInitialized = errors.New("date not properly initialized") )
View Source
var ErrTourenbuchDirNameWrong = errors.New("directory name does not match expected schema")
Functions ¶
func GetActivityLocation ¶
func GetAssetLibraryPath ¶
func GetStartLocationQr ¶
func GetTextLibraryPath ¶
Types ¶
type Activity ¶
type Activity struct { Meta Meta Tb Tourenbuch }
func (*Activity) CreateActivity ¶
func (*Activity) StravaSync ¶
type Header ¶ added in v0.2.0
type Header struct { Meta struct { Version string `yaml:"version,omitempty"` } `yaml:"meta"` Activity struct { Wandern bool `yaml:"wandern,omitempty"` Skitour bool `yaml:"skitour,omitempty"` MTB bool `yaml:"mtb,omitempty"` Type string `yaml:"type"` Date string `yaml:"date"` Title string `yaml:"title"` PointOfOrigin struct { Name string `yaml:"name"` Qr string `yaml:"qr"` Region string `yaml:"region"` } `yaml:"pointOfOrigin"` Season string `yaml:"season"` Rating string `yaml:"rating"` Company string `yaml:"company"` Restaurant string `yaml:"restaurant"` Difficulty string `yaml:"difficulty,omitempty"` LLB string `yaml:"llb,omitempty"` MaxElevation string `yaml:"maxElevation"` } `yaml:"activity"` Layout struct { HeadElevationProfile bool `yaml:"headElevationProfile"` ElevationProfileType string `yaml:"elevationProfileType,omitempty"` ElevationProfileRightMargin float32 `yaml:"elevationProfileRightMargin"` TableSize float32 `yaml:"tableSize"` MapSize float32 `yaml:"mapSize"` MapHeight int `yaml:"mapHeight"` Linespread float32 `yaml:"linespread"` } `yaml:"layout"` Stats struct { Ascent string `yaml:"ascent"` Distance string `yaml:"distance"` MovingTime string `yaml:"movingTime"` OverallTime string `yaml:"overallTime"` StartTime string `yaml:"startTime"` SummitTime string `yaml:"summitTime"` Puls string `yaml:"puls,omitempty"` } `yaml:"stats"` }
type Tourenbuch ¶
Click to show internal directories.
Click to hide internal directories.