Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Distance ¶
func Distance(pos1, pos2 *owm.Coordinates) float64
Distance calculates the shortest path between two coordinates on the surface of the Earth.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API holds our database, config and webServer
type Response ¶
type Response struct {
Current *owm.CurrentWeatherData `json:"current"`
}
Response is the actual reponse of our API this is what we have to cache
Click to show internal directories.
Click to hide internal directories.