Skip to content

Commit

Permalink
Remove the 'go' prefix from GoVersion.
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Ortiz <[email protected]>
  • Loading branch information
taik0 committed Dec 2, 2024
1 parent c237be1 commit d6639a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package core
import (
"fmt"
"runtime"
"strings"
)

// KrakendHeaderName is the name of the custom KrakenD header
Expand All @@ -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"
Expand Down

0 comments on commit d6639a6

Please sign in to comment.