build

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Current version of knot
	Version string = "0.33.0"

	// The date the binary was built
	Date string
)

Functions

func FullVersion added in v0.28.0

func FullVersion() string

FullVersion returns the knot version annotated with the embedded scriptling runtime version, e.g. "0.27.0 (scriptling v0.14.0)".

func IsCompatible added in v0.33.0

func IsCompatible(other string) bool

IsCompatible reports whether other can talk to a build of this version. The major and minor parts must match; the patch part and any pre-release suffix are ignored. An empty or malformed version is never compatible — callers use that to reject peers too old to report a version at all.

func ScriptlingVersion added in v0.28.0

func ScriptlingVersion() string

ScriptlingVersion returns the version of the embedded scriptling module, read from the binary's build metadata. Returns "unknown" if it can't be determined, or "local" when a replace directive points at a working copy.

Types

This section is empty.

Jump to

Keyboard shortcuts

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