json tag 변경
This commit is contained in:
@@ -5,13 +5,13 @@ import "time"
|
|||||||
type Celsius float64
|
type Celsius float64
|
||||||
|
|
||||||
type Temperature struct {
|
type Temperature struct {
|
||||||
Value Celsius
|
Value Celsius `json:"value"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type WeatherEvent struct {
|
type WeatherEvent struct {
|
||||||
Date time.Time
|
Date time.Time `json:"date"`
|
||||||
Condition WeatherCondition `json:"condition"`
|
Condition WeatherCondition `json:"condition"`
|
||||||
Temperature *Temperature `json:"temperature"`
|
Temperature *Temperature `json:"temperature,omitempty"`
|
||||||
High *Temperature `json:"high,omitempty"`
|
High *Temperature `json:"high,omitempty"`
|
||||||
Low *Temperature `json:"low,omitempty"`
|
Low *Temperature `json:"low,omitempty"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user