1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

fix version

This commit is contained in:
wdvxdr 2021-03-26 18:15:48 +08:00
parent 0c7c790386
commit 2f348e9586
No known key found for this signature in database
GPG Key ID: 55FF1414A69CEBA6

View File

@ -28,6 +28,9 @@ import (
var Version = "unknown"
func init() {
if Version != "unknown" {
return
}
info, ok := debug.ReadBuildInfo()
if ok {
Version = info.Main.Version