# tmux.Version

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/version.go#L62
- **Page:** https://libtmux.org/reference/go/tmux-version/

Version is a parsed tmux version that preserves its original token. Obtain a value with [ParseVersion], [Server.Version], or [Snapshot.Version]. Its zero value has no feature level and is useful only as an absent version. Parsed OpenBSD base-system tokens also have no feature level until [Server.Version] probes the configured binary's commands.

## Members

- `String` (method) — String returns the original tmux version token.
- `Major` (method) — Major returns the capability-level major component. Development tokens use the latest tested feature core. Unprobed OpenBSD base-system tokens return zero.
- `Minor` (method) — Minor returns the capability-level minor component, or zero when absent. Development tokens use the latest tested feature core. Unprobed OpenBSD base-system tokens return zero.
- `Patch` (method) — Patch returns the capability-level patch component, or zero when absent.
- `Compare` (method) — Compare compares numeric feature levels and returns -1, 0, or 1. Release qualifiers other than master do not change the feature level.
- `CompareRelease` (method) — CompareRelease compares raw release suffixes using libtmux's legacy order. Use Compare for feature gates, where point-release suffixes intentionally share one capability level.
- `AtLeast` (method) — AtLeast reports whether v provides the same or a newer feature level.
