From 8596891538af1d6a1b8bfff30168c7e830cdf9e0 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 21 Sep 2015 17:59:43 +0200 Subject: Drop internal fields, fix Deg --- weather.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/weather.go b/weather.go index a55347c..1ce93f2 100644 --- a/weather.go +++ b/weather.go @@ -16,7 +16,6 @@ const baseURL = `http://api.openweathermap.org/data/2.5/weather` type Current struct { Coord Coord Weather []Weather - Base string // Internal Parameter Main Main Wind Wind Clouds Clouds @@ -82,7 +81,7 @@ func (m Main) String() string { type Wind struct { Speed float64 // Wind speed. Default meter/sec - Deg int // Wind direction, degrees (meteorogical) + Deg float64 // Wind direction, degrees (meteorogical) Gust float64 } @@ -125,9 +124,6 @@ func (s Snow) String() string { } type Sys struct { - Type int // Internal Parameter - ID int // Internal Parameter - Message float64 // Internal Parameter Country string // Country code Sunrise Timestamp // Sunrise time, unix, UTC Sunset Timestamp // Sunset time, unix, UTC -- cgit v1.2.3