Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version 版本 由外部ldflags指定 Version string // GitCommit git提交版本(短) 由外部ldflags指定 GitCommit string // GitFullCommit git提交版本(完整) 由外部ldflags指定 GitFullCommit string // GitTag git的tag 由外部ldflags指定 GitTag string // BuildDate 编译日期 由外部ldflags指定 BuildDate string )
populated by ldflags
Functions ¶
Types ¶
type Information ¶
type Information struct { Version string GitCommit string GitFullCommit string GitTag string BuildDate string GoVersion string GOOS string GOARCH string GoMaxProcs int NumCPU int Deploy string Metadata map[string]string }
Information 版本信息以及一些布署信息
type Option ¶
type Option func(info *Information)
Click to show internal directories.
Click to hide internal directories.