package
1.79.0-mod
Repository: https://github.com/sagernet/tailscale.git
Documentation: pkg.go.dev

# Packages

Package distro reports which distro we're running on.
Package mkversion gets version info from git and provides a bunch of differently formatted version strings that get used elsewhere in the build system to embed version numbers into binaries.

# Functions

AtLeast returns whether version is at least the specified minimum version.
CmdName returns either the base name of the current binary using os.Executable.
GetMeta returns version metadata about the current build.
IsAppleTV reports whether this binary is part of the Tailscale network extension for tvOS.
IsMacAppStore whether this binary is from the App Store version of Tailscale for macOS.
IsMacGUIVariant reports whether runtime.GOOS=="darwin" and this one of the two GUI variants (that is, not tailscaled-on-macOS).
IsMacSys reports whether this process is part of the Standalone variant of Tailscale for macOS, either the main GUI process (non-sandboxed) or the system extension (sandboxed).
IsMacSysApp reports whether this process is the main, non-sandboxed GUI process that ships with the Standalone variant of Tailscale for macOS.
IsMacSysExt reports whether this binary is the system extension shipped as part of the standalone "System Extension" (a.k.a.
IsMobile reports whether this is a mobile client build.
IsRace reports whether the current binary was built with the Go race detector enabled.
IsSandboxedMacOS reports whether this process is a sandboxed macOS process (either the app or the extension).
IsUnstableBuild reports whether this is an unstable build.
IsWindowsGUI reports whether the current process is the Windows GUI.
Long returns a full version number for this build, of one of the forms: - "x.y.z-commithash-otherhash" for release builds distributed by Tailscale - "x.y.z-commithash" for release builds built with build_dist.sh - "x.y.z-changecount-commithash-otherhash" for untagged release branch builds by Tailscale (these are not distributed).
OS returns runtime.GOOS, except instead of returning "darwin" it returns "iOS" or "macOS".
No description provided by the author
Short returns a short version number for this build, of the forms: - "x.y.z" for builds distributed by Tailscale or built with build_dist.sh - "x.y.z-devYYYYMMDD" for builds made with plain "go build" or "go install" - "x.y.z-ERR-BuildInfo" for builds made by plain "go run".
No description provided by the author

# Structs

Meta is a JSON-serializable type that contains all the version information.