|
|
@ -78,7 +78,7 @@ func main() { |
|
|
|
var city, code, api_key string |
|
|
|
var city, code, api_key string |
|
|
|
flag.StringVar(&city, "city", "London", "Enter city e.g. London, Glasgow etc... (Default: London)") |
|
|
|
flag.StringVar(&city, "city", "London", "Enter city e.g. London, Glasgow etc... (Default: London)") |
|
|
|
flag.StringVar(&code, "code", "uk", "Enter Code e.g. uk, us etc... (Default: uk)") |
|
|
|
flag.StringVar(&code, "code", "uk", "Enter Code e.g. uk, us etc... (Default: uk)") |
|
|
|
flag.StringVar(&api_key, "api", "none", "Enter Code e.g. uk, us etc... Default(none)") |
|
|
|
flag.StringVar(&api_key, "api", "none", "Enter you api key here... (Default: none") |
|
|
|
flag.Parse() |
|
|
|
flag.Parse() |
|
|
|
|
|
|
|
|
|
|
|
full := "https://api.openweathermap.org/data/2.5/weather?q=" + city + "," + code + "&units=metric" + "&appid=" + api_key + "" |
|
|
|
full := "https://api.openweathermap.org/data/2.5/weather?q=" + city + "," + code + "&units=metric" + "&appid=" + api_key + "" |
|
|
|