From 3a8e285396f88544a9698dcc5de73e1b325a6645 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 21 Sep 2015 21:38:29 +0200 Subject: Switch to float --- weather.go | 10 +++++----- 1 file 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 { -- cgit v1.2.3