Documentation
¶
Index ¶
Constants ¶
View Source
const Version = "3.0.0"
Version is the language/interpreter release. It is a constant because bundled binaries (`luascript build`) compare it against the stub they run on.
Variables ¶
View Source
var ( GitCommit = "" BuildTime = "" )
GitCommit and BuildTime are stamped at link time:
go build -ldflags "-X github.com/hilthontt/luascript/v3/internal/version.GitCommit=$(git rev-parse --short HEAD) \
-X github.com/hilthontt/luascript/v3/internal/version.BuildTime=$(date -u +%Y-%m-%dT%H:%M:%SZ)" ./cmd/luascript
When left empty, Commit and Built fall back to the VCS stamp the Go toolchain embeds (`go build` inside a git checkout), then to "unknown".
Functions ¶
func Built ¶
func Built() string
Built is when the binary was built (ldflags) or when its commit was made (VCS fallback), or "unknown".
func Commit ¶
func Commit() string
Commit is the git commit the binary was built from, or "unknown".
func GetVersionString ¶
func GetVersionString() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.