1
0
mirror of https://github.com/beego/bee.git synced 2025-06-15 15:20:38 +00:00

fix Beego#4972: bee version failed

This commit is contained in:
Deng Ming
2022-06-10 18:54:40 +08:00
parent 97df75a28c
commit afe1678459
3 changed files with 19 additions and 76 deletions

View File

@ -15,15 +15,15 @@ import (
// RuntimeInfo holds information about the current runtime.
type RuntimeInfo struct {
GoVersion string
GOOS string
GOARCH string
NumCPU int
GOPATH string
GOROOT string
Compiler string
BeeVersion string
Published string
GoVersion string
GOOS string
GOARCH string
NumCPU int
GOPATH string
GOROOT string
Compiler string
BeeVersion string
Published string
}
// InitBanner loads the banner and prints it to output
@ -52,7 +52,7 @@ func show(out io.Writer, content string) {
}
err = t.Execute(out, RuntimeInfo{
GetGoVersion(),
runtime.Version(),
runtime.GOOS,
runtime.GOARCH,
runtime.NumCPU(),