mirror of
https://codeberg.org/andyscott/weather-cli.git
synced 2024-11-08 05:50:51 -05:00
Flattened directory structure
This commit is contained in:
parent
3c2985203f
commit
91f5a13625
5 changed files with 12 additions and 13 deletions
|
@ -94,19 +94,18 @@ func main() {
|
|||
}
|
||||
option = strings.TrimSuffix(input, "\n")
|
||||
|
||||
// Check user input
|
||||
if option == "1" || option == "" {
|
||||
getLocation(&app)
|
||||
getCurrent(&app)
|
||||
printWeather(&app)
|
||||
} else if option == "2" {
|
||||
advancedMenu(&app)
|
||||
} else if option == "0" {
|
||||
return
|
||||
} else {
|
||||
fmt.Print("\nOops! An error occurred, please choose a valid option.\n\n")
|
||||
}
|
||||
|
||||
}
|
||||
// Check user input
|
||||
if option == "1" || option == "" {
|
||||
getLocation(&app)
|
||||
getCurrent(&app)
|
||||
printWeather(&app)
|
||||
} else if option == "2" {
|
||||
advancedMenu(&app)
|
||||
} else if option == "0" {
|
||||
return
|
||||
} else {
|
||||
fmt.Print("\nOops! An error occurred, please choose a valid option.\n\n")
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue