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
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.
Click to show internal directories.
Click to hide internal directories.