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") option = strings.TrimSuffix(input, "\n")
// Check user input }
if option == "1" || option == "" { // Check user input
getLocation(&app) if option == "1" || option == "" {
getCurrent(&app) getLocation(&app)
printWeather(&app) getCurrent(&app)
} else if option == "2" { printWeather(&app)
advancedMenu(&app) } else if option == "2" {
} else if option == "0" { advancedMenu(&app)
return } else if option == "0" {
} else { return
fmt.Print("\nOops! An error occurred, please choose a valid option.\n\n") } else {
} fmt.Print("\nOops! An error occurred, please choose a valid option.\n\n")
} }
} }