use main.version rather than subpackage variables

This commit is contained in:
Matthew R. Kasun
2022-02-08 07:01:39 -05:00
parent acef10991b
commit 4ab924af3e
5 changed files with 30 additions and 14 deletions

View File

@@ -26,8 +26,11 @@ import (
"google.golang.org/grpc"
)
var version = "dev"
// Start DB Connection and start API Request Handler
func main() {
servercfg.SetVersion(version)
fmt.Println(models.RetrieveLogo()) // print the logo
initialize() // initial db and grpc server
setGarbageCollection()