Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GitVersion 是语义化的版本号. GitVersion = "v0.1.0-alpha" // BuildDate 是 ISO8601 格式的构建时间, $(date -u +'%Y-%m-%dT%H:%M:%SZ') 命令的输出. BuildDate = "2026-04-16T00:00:00Z" // GitCommit 是 Git 的 SHA1 值,$(git rev-parse HEAD) 命令的输出. GitCommit = "$Format:%H$" // GitTreeState 代表构建时 Git 仓库的状态,可能的值有:clean, dirty. GitTreeState = "" )
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
GitVersion string `json:"gitVersion"`
GitCommit string `json:"gitCommit"`
GitTreeState string `json:"gitTreeState"`
BuildDate string `json:"buildDate"`
GoVersion string `json:"goVersion"`
Compiler string `json:"compiler"`
Platform string `json:"platform"`
}
Info 包含了版本信息.
Click to show internal directories.
Click to hide internal directories.