libtmux Reference MCP Search
On this page

tmux.Version

View as Markdown

Module
tmux
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/version.go
struct tmux.Version
struct [source]
struct [source]
struct 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.

7 declared, 0 inherited

Members

  • AtLeast method AtLeast reports whether v provides the same or a newer feature level.
  • 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.
  • 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.
  • String method String returns the original tmux version token.
Esc

Type to search.