要らない情報の消し
このコミットが含まれているのは:
コミット
d729c9643e
|
@ -1,19 +1,4 @@
|
||||||
package utils
|
package utils
|
||||||
|
|
||||||
import (
|
var Ver = "1.0.0"
|
||||||
"runtime/debug"
|
var Ves = "100"
|
||||||
)
|
|
||||||
|
|
||||||
var Branch = "Alpha"
|
|
||||||
|
|
||||||
// Version returns the git commit hash of the current build. Taken from https://git.vern.cc/pjals/bestofbot.
|
|
||||||
func Version() string {
|
|
||||||
if info, ok := debug.ReadBuildInfo(); ok {
|
|
||||||
for _, setting := range info.Settings {
|
|
||||||
if setting.Key == "vcs.revision" {
|
|
||||||
return setting.Value[:8]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return "unknown, please build with Go 1.13+ or use Git"
|
|
||||||
}
|
|
||||||
|
|
読み込み中…
新しいイシューから参照