Server.ValidateLayouts
ValidateLayouts checks every layout and its required pane count before any mutation. Nil and empty sequences succeed without I/O unless ctx is canceled. Empty layout strings are ignored. Other entries require at least one pane; classic trees must contain enough leaves. tmux validates JSON contents and geometry when applying the layout.
Source and package
- Qualified name
-
tmux.Server. Validate Layouts - Package
- tmux
- Declared in
Server- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/server_layout.go
-
- Bounded by
- Nil and empty sequences succeed without I/O unless ctx is canceled.doc comment · server_layout.go:10
- Errors
- Validation errors match
ErrInvalidServerCommandRequest; unavailable presets matchErrVersionTooLow.doc comment · :19 - Transport
- Version-sensitive names query the selected daemon through this server's transport; only a cold endpoint without a captured daemon identity or control connection uses the configured binary's version.doc comment · :15
Description
Names accept unique abbreviations. Version-sensitive names query the selected daemon through this server's transport; only a cold endpoint without a captured daemon identity or control connection uses the configured binary's version. Permission, protocol, decode and cancellation errors are preserved. Validation errors match
ErrInvalidServerCommandRequest; unavailable presets matchErrVersionTooLow.- Parameters
-
Recorded calls
source callsThe Go reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls tmux.Server.ValidateLayouts.