1 Star 0 Fork 0

PeterTu_2019/influxdb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.go 627 Bytes
一键复制 编辑 原始数据 按行查看 历史
package influxdb
// BuildInfo represents the information about InfluxDB build.
type BuildInfo struct {
Version string // Version is the current git tag with v prefix stripped
Commit string // Commit is the current git commit SHA
Date string // Date is the build date in RFC3339
}
var buildInfo BuildInfo
// SetBuildInfo sets the build information for the binary.
func SetBuildInfo(version, commit, date string) {
buildInfo.Version = version
buildInfo.Commit = commit
buildInfo.Date = date
}
// GetBuildInfo returns the current build information for the binary.
func GetBuildInfo() BuildInfo {
return buildInfo
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/petertu_2019/influxdb.git
git@gitee.com:petertu_2019/influxdb.git
petertu_2019
influxdb
influxdb
master

搜索帮助