From 663df0e2908b0b328ed35591338e18fae482f955 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 21 Sep 2015 17:47:00 +0200 Subject: Fix some float/int bugs and error reporting --- example/main.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'example/main.go') diff --git a/example/main.go b/example/main.go index 3eddcc8..e8c03c7 100644 --- a/example/main.go +++ b/example/main.go @@ -8,9 +8,11 @@ import ( ) func main() { - current, err := weather.ByCityName("Berlin") - if err != nil { - log.Fatal(err) + for _, loc := range []string{"Berlin", "London", ""} { + current, err := weather.ByCityName(loc) + if err != nil { + log.Fatal(err) + } + fmt.Println(current) } - fmt.Println(current) } -- cgit v1.2.3