Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Go API

Go documentation

tmux.MissingTargetError

Go
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
tmux
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/target.go
struct tmux.MissingTargetError
struct [source]
struct [source]
struct tmux.MissingTargetError

MissingTargetError reports an operation attempted on a zero-value model identity. It matches ErrMissingTarget through errors.Is; callers can recover Object with errors.As.

A relation accessor such as Session.ActiveWindow or Session.Windows returns ok false rather than a value with no id, and a creation call such as Server.NewSession carries no relations at all - so using a discarded or freshly created value's zero-value fields reaches this error on the first operation. Resolve live state with a Resolve* method or a fresh Server.Snapshot instead.

3 declared, 0 inherited

Members

  • Error method Error implements error.
  • Object attribute Object names the tmux object kind with no id: "session", "window", "pane", or "client".
  • Unwrap method Unwrap makes MissingTargetError compatible with ErrMissingTarget.
Esc

Type to search.