|
|
@ -30,6 +30,7 @@ func main() { |
|
|
|
data, err := loadJson("weather.json") |
|
|
|
data, err := loadJson("weather.json") |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
fmt.Println("Cannot load weather.json file!") |
|
|
|
fmt.Println("Cannot load weather.json file!") |
|
|
|
|
|
|
|
os.Exit(1) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//Print the weather!
|
|
|
|
//Print the weather!
|
|
|
|