Documentation
¶
Overview ¶
Package version 提供 Runtime 版本与构建信息的注入点。
Version、Commit 与 BuildDate 由构建期 -ldflags 写入,未注入时保持稳定占位; hello.runtimeVersion 与 version 命令共享同一份 Info 快照。
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version 是 Runtime 发布版本,构建期通过 -ldflags -X 注入。 Version = "dev" // Commit 是构建对应的提交哈希,可为空字符串。 Commit = "" // BuildDate 是构建时间,可为空字符串。 BuildDate = "" )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.