diff options
-rw-r--r-- | weather.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -107,6 +107,8 @@ var TypeDescription = map[int]string{ 2: "Partly Cloudy", 3: "Sunny Intervals", 7: "Light Cloud", + 8: "Thick Cloud", + 9: "Light Rain Showers", 12: "Light Rain", } @@ -227,7 +229,7 @@ func main() { for _, w := range weather { fmt.Printf("%s %s ", w.date, w.time) - fmt.Printf("%15s, Temp: %4.1f°C, ", TypeDescription[w.weathertype], w.temperature) + fmt.Printf("%18s, Temp: %4.1f°C, ", TypeDescription[w.weathertype], w.temperature) fmt.Printf("Rain: %2d%%, Wind: %4.1fmph\n", w.precipitation, w.windspeed) if *verbose { fmt.Printf(" %+v\n", w) |