Added weather route and embedded cache system
This commit is contained in:
9
types/city.go
Normal file
9
types/city.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package types
|
||||
|
||||
// The City data type, representing the name, the latitude and the longitude
|
||||
// of a location
|
||||
type City struct {
|
||||
Name string `json:"name"`
|
||||
Lat float64 `json:"lat"`
|
||||
Lon float64 `json:"lon"`
|
||||
}
|
||||
Reference in New Issue
Block a user