Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string Commit string BuildTime string BuildTool string BuildPlatform string )
View Source
var BuildInfo string
Functions ¶
func ShowBuildInfo ¶
func ShowBuildInfo()
ShowBuildInfo show build infos. usage eg: go build -ldflags "-X gitee.com/z1gotool/z1info.Version=`git describe --tags --abbrev=0` -X gitee.com/z1gotool/z1info.Commit=`git rev-parse HEAD` -X gitee.com/z1gotool/z1info.BuildTime=`date +%Y-%m-%dT%H:%M:%S` -X gitee.com/z1gotool/z1info.BuildTool=`echo $(go env GOVERSION)` -X gitee.com/z1gotool/z1info.BuildPlatform=`echo $(go env GOOS)/$(go env GOARCH)`"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.