Documentation
¶
Overview ¶
Package version is agent-vm's semantic version.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Version = "0.3.0-dev"
Version is set at build time (-ldflags -X); integrators gate on it with `agent-vm version --min`.
Functions ¶
func AtLeast ¶
AtLeast reports whether version have is want or later. The numbers before any "-" compare first, anything but digits in a component dropped, a missing component being 0 (1.2 is 1.2.0). With equal numbers, a version with a suffix after "-" is a prerelease and is older than the same without: 0.3.0-dev, as 0.3.0-dev.<commit> from a development build, does not satisfy 0.3.0. Two prereleases compare identifier by identifier, as semver does.
Types ¶
This section is empty.