nats migration
This commit is contained in:
+6
-2
@@ -6,6 +6,8 @@ import (
|
||||
"os"
|
||||
)
|
||||
|
||||
var Ver string
|
||||
|
||||
func EnsureVer(v string) {
|
||||
build := os.Getenv("BUILD_VER")
|
||||
if build == "" {
|
||||
@@ -21,6 +23,8 @@ func EnsureVer(v string) {
|
||||
}
|
||||
}
|
||||
func Get() string {
|
||||
build := os.Getenv("BUILD_VER")
|
||||
return build
|
||||
if Ver == "" {
|
||||
Ver = os.Getenv("BUILD_VER")
|
||||
}
|
||||
return Ver
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user