summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--weather.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/weather.go b/weather.go
index 1ce93f2..72ff915 100644
--- a/weather.go
+++ b/weather.go
@@ -66,12 +66,12 @@ func (w Weather) String() string {
type Main struct {
Temp float64 // Temperature, Default Kelvin, Metric: Celsius
- Pressure int // Atmospheric pressure, hPa
- Humidity int // Humidity, %
+ Pressure float64 // Atmospheric pressure, hPa
+ Humidity float64 // Humidity, %
TempMin float64 `json:"temp_min"` // min temp
TempMax float64 `json:"temp_max"` // max temp
- SeaLevel int `json:"sea_level"` // pressure on the sea level, hPa
- GrndLevel int `json:"grnd_level"` // pressure on the ground level, hPa
+ SeaLevel float64 `json:"sea_level"` // pressure on the sea level, hPa
+ GrndLevel float64 `json:"grnd_level"` // pressure on the ground level, hPa
}
func (m Main) String() string {
@@ -94,7 +94,7 @@ func (w Wind) String() string {
}
type Clouds struct {
- All int // Cloudness, %
+ All float64 // Cloudness, %
}
func (c Clouds) String() string {