summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-09-21 17:59:43 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-09-21 17:59:43 +0200
commit8596891538af1d6a1b8bfff30168c7e830cdf9e0 (patch)
treec8d84bdf31f5f9926a0dddf12030d2aab6dc8944
parent663df0e2908b0b328ed35591338e18fae482f955 (diff)
Drop internal fields, fix Deg
-rw-r--r--weather.go6
1 files changed, 1 insertions, 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