Documentation ¶
Overview ¶
Package version provides the version that the binary was built at.
Index ¶
Constants ¶
const LONG = "date.20200703"
const SHORT = LONG
Variables ¶
This section is empty.
Functions ¶
func AtLeast ¶ added in v0.100.0
AtLeast returns whether version is at least the specified minimum version.
Version comparison in Tailscale is a little complex, because we switched "styles" a few times, and additionally have a completely separate track of version numbers for OSS-only builds.
AtLeast acts conservatively, returning true only if it's certain that version is at least minimum. As a result, it can produce false negatives, for example when an OSS build supports a given feature, but AtLeast is called with an official release number as the minimum
version and minimum can both be either an official Tailscale version numbers (major.minor.patch-extracommits-extrastring), or an OSS build datestamp (date.YYYYMMDD). For Tailscale version numbers, AtLeast also accepts a prefix of a full version, in which case all missing fields are assumed to be zero.
Types ¶
This section is empty.