修复golint

This commit is contained in:
lwch
2021-10-18 10:51:43 +08:00
parent bf9503d4cc
commit 36b5c0d35e
10 changed files with 64 additions and 57 deletions

View File

@@ -17,17 +17,17 @@ import (
)
var (
_VERSION string = "0.0.0"
_GIT_HASH string
_GIT_REVERSION string
_BUILD_TIME string
version string = "0.0.0"
gitHash string
gitReversion string
buildTime string
)
func showVersion() {
fmt.Printf("version: v%s\ntime: %s\ncommit: %s.%s\n",
_VERSION,
_BUILD_TIME,
_GIT_HASH, _GIT_REVERSION)
version,
buildTime,
gitHash, gitReversion)
os.Exit(0)
}