From d6639a6c963c214944b3ca61a1b617e3a3ad1486 Mon Sep 17 00:00:00 2001 From: Daniel Ortiz Date: Mon, 2 Dec 2024 16:37:26 +0000 Subject: [PATCH] Remove the 'go' prefix from GoVersion. Signed-off-by: Daniel Ortiz --- core/version.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/version.go b/core/version.go index 9c7006198..b81002276 100644 --- a/core/version.go +++ b/core/version.go @@ -8,6 +8,7 @@ package core import ( "fmt" "runtime" + "strings" ) // KrakendHeaderName is the name of the custom KrakenD header @@ -17,7 +18,7 @@ const KrakendHeaderName = "X-KRAKEND" var KrakendVersion = "undefined" // GoVersion is the version of the go compiler used at build time -var GoVersion = runtime.Version() +var GoVersion = strings.TrimPrefix(runtime.Version(), "go") // GlibcVersion is the version of the glibc used by CGO at build time var GlibcVersion = "undefined"