From 324374d24bc3c2f31ef668348c9e31ebe2edc754 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Sun, 3 Dec 2023 13:39:08 +0100 Subject: [PATCH] Remove go version --- internal/router/router.go | 2 -- internal/version.go | 4 ++-- internal/version/version.go | 8 +++----- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/internal/router/router.go b/internal/router/router.go index 526d742..15a85ce 100644 --- a/internal/router/router.go +++ b/internal/router/router.go @@ -186,7 +186,6 @@ type RootResponse struct { Version string `json:"version"` BuiltAt string `json:"built_at"` GitCommit string `json:"git_commit"` - GoVersion string `json:"go_version"` Dav string `json:"dav"` Html string `json:"html"` UserInfo *realdebrid.User `json:"user_info"` // Replace UserInfoType with the actual type @@ -212,7 +211,6 @@ func (zr *ZurgRouter) rootHandler(resp http.ResponseWriter, req *http.Request, p Version: version.GetVersion(), BuiltAt: version.GetBuiltAt(), GitCommit: version.GetGitCommit(), - GoVersion: version.GetGoVersion(), Dav: fmt.Sprintf("//%s/dav/", req.Host), Html: fmt.Sprintf("//%s/http/", req.Host), UserInfo: userInfo, diff --git a/internal/version.go b/internal/version.go index 7e4878b..6c1c443 100644 --- a/internal/version.go +++ b/internal/version.go @@ -7,6 +7,6 @@ import ( ) func ShowVersion() { - fmt.Printf("zurg\nBuilt At: %s\nGo Version: %s\nCommit: %s\nVersion: %s\n", - version.GetBuiltAt(), version.GetGoVersion(), version.GetGitCommit(), version.GetVersion()) + fmt.Printf("zurg\nBuilt At: %s\nCommit: %s\nVersion: %s\n", + version.GetBuiltAt(), version.GetGitCommit(), version.GetVersion()) } diff --git a/internal/version/version.go b/internal/version/version.go index c9dc5b5..ab15c79 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -1,8 +1,7 @@ package version var ( - BuiltAt string = "" - GoVersion string = "" + BuiltAt string = "uhm, now?" GitCommit string = "docker image inspect ghcr.io/debridmediamanager/zurg-testing | grep Id" Version string = "docker" ) @@ -10,12 +9,11 @@ var ( func GetBuiltAt() string { return BuiltAt } -func GetGoVersion() string { - return GoVersion -} + func GetGitCommit() string { return GitCommit } + func GetVersion() string { return Version }