version

package
v3.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL