From d729c9643e1866842c902e2f6fd9acc300d7d437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Wed, 7 Jun 2023 09:52:31 +0900 Subject: [PATCH] =?UTF-8?q?=E8=A6=81=E3=82=89=E3=81=AA=E3=81=84=E6=83=85?= =?UTF-8?q?=E5=A0=B1=E3=81=AE=E6=B6=88=E3=81=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/version.go | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/utils/version.go b/utils/version.go index 6bf590a..63f757a 100644 --- a/utils/version.go +++ b/utils/version.go @@ -1,19 +1,4 @@ package utils -import ( - "runtime/debug" -) - -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" -} +var Ver = "1.0.0" +var Ves = "100"