Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 自定义版本 version // "v0.0.1" Version = "" // 版本信息,即 git tag // "v0.3.0-13-g4c375ab" Tag = "" // Commit的Id号 // "2f9d39af2d8fe03b5b08c2b7661156fd0f15b3b2" CommitID = "" // 编译时间 // "2022-06-24T16:36:03" BuildTime = "" // 编译用户 // "XXX" BuildUser = "" // Go 版本 GoVersion = "" )
版本信息通过编译选项传入,和 Git tag 同步
Functions ¶
func VersionInfo ¶
func VersionInfo() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.