19 lines
242 B
Go
19 lines
242 B
Go
|
package config
|
||
|
|
||
|
import (
|
||
|
"runtime/debug"
|
||
|
|
||
|
"github.com/sirupsen/logrus"
|
||
|
)
|
||
|
|
||
|
var BuildInfo *debug.BuildInfo
|
||
|
|
||
|
func init() {
|
||
|
var ok bool
|
||
|
BuildInfo, ok = debug.ReadBuildInfo()
|
||
|
if !ok {
|
||
|
logrus.Error("failed to read build info")
|
||
|
return
|
||
|
}
|
||
|
}
|