const URL … const weatherTemplate … const forecastTemplate … var whereFlag … var unitFlag … var langFlag … var whenFlag … type Data … // getLocation will get the location details for where this // application has been run from. func getLocation() (*Data, error) { … } // getCurrent gets the current weather for the provided // location in the units provided. func getCurrent(location, units, lang string) (*owm.CurrentWeatherData, error) { … } func getForecast5(location, units, lang string) (*owm.Forecast5WeatherData, error) { … } func main() { … }