Compare commits

...

2 commits

Author SHA1 Message Date
444451384b release: version 1.0.2 2019-08-25 09:19:14 +02:00
f366938d55 fix: remove memory leak 2019-08-24 19:33:40 +02:00
3 changed files with 8 additions and 1 deletions

View file

@ -7,6 +7,12 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
## Unreleased
## v1.0.2 - 2019-08-25
### Fixed
- remove memory leak
## v1.0.1 - 2019-08-22
### Added

View file

@ -1,6 +1,6 @@
# Weather
[![Version](https://img.shields.io/badge/latest_version-1.0.1-green.svg)](https://git.yaegashi.fr/nishiki/weather/releases)
[![Version](https://img.shields.io/badge/latest_version-1.0.2-green.svg)](https://git.yaegashi.fr/nishiki/weather/releases)
[![GoReport](https://goreportcard.com/badge/git.yaegashi.fr/nishiki/weather)](https://goreportcard.com/report/git.yaegashi.fr/nishiki/weather)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://git.yaegashi.fr/nishiki/weather/src/branch/master/LICENSE)

View file

@ -62,6 +62,7 @@ type WeatherData struct {
// FetchData from OpenWeatherMap API
func (w *Weather) FetchData() {
w.WeatherDatas = []WeatherData{}
for _, city := range w.Config.Cities {
resp, err := http.Get(
fmt.Sprintf(