diff --git a/app.go b/app.go index fa4d09d..25f68ea 100644 --- a/app.go +++ b/app.go @@ -16,18 +16,19 @@ import ( var ( // Version the version of Gotify. - Version = "unknown" + Version = "unknown" // Commit the git commit hash of this version. - Commit = "unknown" + Commit = "unknown" // BuildDate the date on which this binary was build. BuildDate = "unknown" // Branch the git branch of this version. - Branch = "unknown" - vInfo = &model.VersionInfo{Version: Version, Commit: Commit, BuildDate: BuildDate, Branch: Branch} + Branch = "unknown" ) func main() { - fmt.Println("Starting Gotify version", Version+"@"+BuildDate) + vInfo := &model.VersionInfo{Version: Version, Commit: Commit, BuildDate: BuildDate, Branch: Branch} + + fmt.Println("Starting Gotify version", vInfo.Version+"@"+BuildDate) rand.Seed(time.Now().UnixNano()) conf := config.Get() db, err := database.New(conf.Database.Dialect, conf.Database.Connection, conf.DefaultUser.Name, conf.DefaultUser.Pass)