mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-07 09:41:37 +08:00
use main.version rather than subpackage variables
This commit is contained in:
3
main.go
3
main.go
@@ -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()
|
||||
|
Reference in New Issue
Block a user