Skip to content

Commit

Permalink
Merge pull request #736 from luraproject/trim_goversion
Browse files Browse the repository at this point in the history
Remove the 'go' prefix from GoVersion.
  • Loading branch information
kpacha authored Dec 2, 2024
2 parents c237be1 + d6639a6 commit d44d87e
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 d44d87e

Please sign in to comment.