Documentation
¶
Overview ¶
Package version 承载构建期注入的版本信息。
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version 语义化版本号,发布构建由 goreleaser 注入 tag。 Version = "0.0.0-dev" // Commit git 提交短哈希。 Commit = "unknown" // Date 构建时间,RFC 3339 格式。 Date = "unknown" )
以下变量由链接器在构建时注入,见 Taskfile.yml 与 .goreleaser.yaml。 默认值对应「从源码直接 go build / go run」的场景。
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.