Discover Packages
github.com/doniacld/outdoorsight
internal
spot
package
Version:
v0.0.0-...-bd08887
Opens a new window with list of versions in this module.
Published: Jul 22, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Details struct {
Name string `json:"name,omitempty"`
Routes []Route `json:"routes,omitempty"`
Metadata map[string ]interface{} `json:"metadata,omitempty"`
}
Details holds the information about a spot
Validate checks that a spot name does not have a space
type Route struct {
Name string `json:"name,omitempty"`
Level string `json:"level,omitempty"`
Points int `json:"points,omitempty"`
Information string `json:"information,omitempty"`
}
Route holds the information about a route
NewRoute returns a new structure filled with given parameters
type Spot interface {
GetRoutes() []Route
Validate() error
}
Spot holds all the method to handle a spot
Source Files
¶
Click to show internal directories.
Click to hide internal directories.