Documentation
¶
Overview ¶
Package version 提供构建时注入的版本信息。 变量由 Makefile 通过 -ldflags 在编译时注入,开发时为默认值。
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BuiltAt = "unknown"
BuiltAt 是 UTC 构建时间(RFC3339),构建时由 Makefile 注入。
View Source
var Commit = "unknown"
Commit 是 git 短 hash,构建时由 Makefile 注入。
View Source
var Version = "dev"
Version 是 git tag(如 v1.0.0),构建时由 Makefile 注入。
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.