Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
444451384b | |||
f366938d55 |
3 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue