fix bug:重构版本信息的位置解决包引用环路问题

This commit is contained in:
tsosunchia
2023-05-30 14:55:47 +08:00
parent 288aee254f
commit 4e5cd2d053
5 changed files with 22 additions and 20 deletions

View File

@@ -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",