Remove go version
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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())
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user