Added custom date type
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
package types
|
||||
|
||||
import "time"
|
||||
|
||||
// The Weather data type, representing the weather of a certain city
|
||||
type Weather struct {
|
||||
Date time.Time `json:"date"`
|
||||
Temperature string `json:"temperature"`
|
||||
Condition string `json:"condition"`
|
||||
FeelsLike string `json:"feelsLike"`
|
||||
Emoji string `json:"emoji"`
|
||||
Date *ZephyrDate `json:"date"`
|
||||
Temperature string `json:"temperature"`
|
||||
Condition string `json:"condition"`
|
||||
FeelsLike string `json:"feelsLike"`
|
||||
Emoji string `json:"emoji"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user