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.

MoreLess about this notice
View Columns are a trial view; the tree stays the default. All variantsPanels

method libtmux-go

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.ValidateLayouts
Package
tmux
Declared in
Server
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/server_layout.go
func (s Server) ValidateLayouts( ctx context.Context, layouts iter.Seq2[string, int], ) error
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 match ErrVersionTooLow.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 match ErrVersionTooLow.

Parameters

Recorded calls

source calls
No call edges in the Go model.

The 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.

Esc
Search in

Type to search.

Reference previewOpen reference