Documentation
¶
Index ¶
- Variables
- func NewStdio() net.Listener
- type ReaderFunc
- type Stdio
- type StdioAddr
- type StdioConn
- func (c *StdioConn) Close() error
- func (c *StdioConn) LocalAddr() net.Addr
- func (c *StdioConn) Read(b []byte) (int, error)
- func (c *StdioConn) RemoteAddr() net.Addr
- func (c *StdioConn) SetDeadline(t time.Time) error
- func (c *StdioConn) SetReadDeadline(t time.Time) error
- func (c *StdioConn) SetWriteDeadline(t time.Time) error
- func (c *StdioConn) Write(b []byte) (int, error)
- type WriterFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("closed")
ErrClosed is the error returned by Stdio.Accept if it has been closed.
TODO use net.ErrClosed when support for 1.15 is dropped.
Functions ¶
Types ¶
type ReaderFunc ¶
ReaderFunc is an io.Reader function.
type Stdio ¶
type Stdio struct {
// contains filtered or unexported fields
}
Stdio is a net.Listener that produces StdioConns.
type StdioConn ¶
type StdioConn struct {
// contains filtered or unexported fields
}
StdioConn is a net.Conn that reads stdin and writes stdout.
func (*StdioConn) RemoteAddr ¶
RemoteAddr implements net.Conn.
func (*StdioConn) SetDeadline ¶
SetDeadline sets a read deadline and a write deadline on stdin and stdout, respectively.
func (*StdioConn) SetReadDeadline ¶
SetReadDeadline sets a read deadline on stdin.
func (*StdioConn) SetWriteDeadline ¶
SetWriteDeadline sets a write deadline on stdout.
Click to show internal directories.
Click to hide internal directories.