Flattened directory structure

This commit is contained in:
Andrew Scott 2022-07-26 23:03:56 -04:00
parent 3c2985203f
commit 91f5a13625
Signed by: a
GPG key ID: 3EB62D0BBB8DB381
5 changed files with 12 additions and 13 deletions

View file

@ -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")
}
}