Skip to content

Commit

Permalink
Merge pull request #733 from luraproject/go_version_from_stdlib
Browse files Browse the repository at this point in the history
Get go version from runtime
  • Loading branch information
kpacha authored Oct 7, 2024
2 parents fb531bf + 3a608ab commit f30b0a9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core/version.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
// SPDX-License-Identifier: Apache-2.0

/*
Package core contains some basic constants and variables
Package core contains some basic constants and variables
*/
package core

import "fmt"
import (
"fmt"
"runtime"
)

// KrakendHeaderName is the name of the custom KrakenD header
const KrakendHeaderName = "X-KRAKEND"
Expand All @@ -14,7 +17,7 @@ const KrakendHeaderName = "X-KRAKEND"
var KrakendVersion = "undefined"

// GoVersion is the version of the go compiler used at build time
var GoVersion = "undefined"
var GoVersion = runtime.Version()

// GlibcVersion is the version of the glibc used by CGO at build time
var GlibcVersion = "undefined"
Expand Down

0 comments on commit f30b0a9

Please sign in to comment.