mirror of
https://codeberg.org/andyscott/weather-cli.git
synced 2024-12-21 12:43:09 -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")
|
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")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue