Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

struct libtmux-go latest

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.

Source and package
Qualified name
tmux.Version
Package
tmux
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/version.go
struct tmux.Version

Members7#

  • AtLeast method AtLeast reports whether v provides the same or a newer feature level.
  • Compare method Compare orders versions by feature level and returns -1, 0, or 1. Patch letters share their release's level, but a development build ranks below the release it names and a candidate below its release:
  • 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.

Reference previewOpen reference