mirror of
https://github.com/lwch/natpass
synced 2025-10-09 06:50:05 +08:00
修复golint
This commit is contained in:
@@ -23,17 +23,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)
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ func (a *app) run() {
|
||||
}
|
||||
|
||||
if a.cfg.DashboardEnabled {
|
||||
db := dashboard.New(a.cfg, pl, mgr, _VERSION)
|
||||
db := dashboard.New(a.cfg, pl, mgr, version)
|
||||
runtime.Assert(db.ListenAndServe(a.cfg.DashboardListen, a.cfg.DashboardPort))
|
||||
} else {
|
||||
select {}
|
||||
|
Reference in New Issue
Block a user