2019-11-07 03:12:15 +00:00
|
|
|
package common
|
2019-11-02 20:15:16 +00:00
|
|
|
|
|
|
|
type BuildInfoRecord struct {
|
|
|
|
Branch string
|
|
|
|
Commit string
|
|
|
|
}
|
|
|
|
|
|
|
|
var BuildInfo BuildInfoRecord
|
|
|
|
|
|
|
|
func SetBuildInfo(branch, commit string) {
|
|
|
|
BuildInfo = BuildInfoRecord{
|
|
|
|
Branch: branch,
|
|
|
|
Commit: commit,
|
|
|
|
}
|
|
|
|
}
|