Adjust settings functions
This commit is contained in:
parent
c295d20b1a
commit
06eaff6503
2 changed files with 22 additions and 32 deletions
6
main.go
6
main.go
|
@ -18,7 +18,11 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
appSettings := cfg.Parse()
|
||||
appSettings := cfg.NewAppSettings()
|
||||
if err := appSettings.Parse(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
handleGracefulShutdown()
|
||||
if !downloader.FileExists(appSettings.DataFile) {
|
||||
downloader.DownloadFile(appSettings.DataFile, appSettings.DataURL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue