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.

function libtmux-go latest

Ptr

Ptr returns a distinct pointer to a shallow copy of value, including when T has zero size. Its nonzero holder prevents Go from coalescing zero-size addresses. Slices, maps, pointers, and other reference-bearing values still alias their referenced data. Ptr performs no validation or ownership transfer.

Source and package
Qualified name
tmux.Ptr
Package
tmux
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/filter.go
func Ptr[T any](value T) *T
Type parameters
Parameters

Guides#

Pages that discuss Ptr.

Esc

Type to search.

Reference previewOpen reference