MCPcopy Index your code
hub / github.com/coder/coder / New

Function New

pty/pty.go:123–125  ·  view source on GitHub ↗

New constructs a new Pty.

(opts ...Option)

Source from the content-addressed store, hash-verified

121
122// New constructs a new Pty.
123func New(opts ...Option) (PTY, error) {
124 return newPty(opts...)
125}
126
127// ReadWriter is an implementation of io.ReadWriter that wraps two separate
128// underlying file descriptors, one for reading and one for writing, and allows

Callers 1

newTestPTYFunction · 0.92

Calls 1

newPtyFunction · 0.70

Tested by

no test coverage detected