mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2025-08-12 06:26:39 +00:00
fix bug:重构版本信息的位置解决包引用环路问题
This commit is contained in:
@@ -2,19 +2,16 @@ package printer
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/xgadget-lab/nexttrace/config"
|
||||
"github.com/xgadget-lab/nexttrace/trace"
|
||||
"net"
|
||||
|
||||
"github.com/fatih/color"
|
||||
)
|
||||
|
||||
var version = "v0.0.0.alpha"
|
||||
var buildDate = ""
|
||||
var commitID = ""
|
||||
|
||||
func GetVersion() string {
|
||||
return version
|
||||
}
|
||||
var version = config.Version
|
||||
var buildDate = config.BuildDate
|
||||
var commitID = config.CommitID
|
||||
|
||||
func Version() {
|
||||
fmt.Fprintf(color.Output, "%s %s %s %s\n",
|
||||
|
||||
Reference in New Issue
Block a user