summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-09-21 21:38:29 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-09-21 21:38:29 +0200
commit3a8e285396f88544a9698dcc5de73e1b325a6645 (patch)
tree3bdbd411d49e74d8b0cdea225d0d361b5c084390
parent8596891538af1d6a1b8bfff30168c7e830cdf9e0 (diff)
Switch to float
-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 {