mirror of
https://codeberg.org/andyscott/weather-cli.git
synced 2024-12-21 12:43:09 -05:00
Update version info
This commit is contained in:
parent
8ab60dd590
commit
47beff4da5
1 changed files with 16 additions and 14 deletions
|
@ -10,7 +10,7 @@ import (
|
|||
"github.com/joho/godotenv"
|
||||
)
|
||||
|
||||
const version string = "0.1.0"
|
||||
const version string = "0.2.0"
|
||||
|
||||
type weatherMain struct {
|
||||
Temp float32 `json:"temp"`
|
||||
|
@ -73,7 +73,9 @@ func main() {
|
|||
fmt.Printf("| Welcome to the OpenWeatherMap-gRPC Client! v%s |\n", app.Version)
|
||||
fmt.Println("=====================================================")
|
||||
|
||||
fmt.Println("New in version 0.1.0:")
|
||||
fmt.Printf("New in version %s:\n", app.Version)
|
||||
fmt.Println(" - Advanced option: Get historical data back to 1972")
|
||||
fmt.Println("New in version 0.1.0")
|
||||
fmt.Println(" - Default option: Automatically determine location")
|
||||
fmt.Println(" - Advanced option: Enter exact location for anywhere in the world")
|
||||
fmt.Println(" - Advanced option: Change back and forth between imperial and metric units of measurement")
|
||||
|
@ -94,7 +96,6 @@ func main() {
|
|||
}
|
||||
option = strings.TrimSuffix(input, "\n")
|
||||
|
||||
}
|
||||
// Check user input
|
||||
if option == "1" || option == "" {
|
||||
getLocation(&app)
|
||||
|
@ -107,5 +108,6 @@ func main() {
|
|||
} else {
|
||||
fmt.Print("\nOops! An error occurred, please choose a valid option.\n\n")
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue