json tag 변경

This commit is contained in:
2025-12-04 23:36:20 +09:00
parent d4185a6529
commit 4c32049944

View File

@@ -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"`
} }