Documentation ¶
Overview ¶
Package ioctx provides a way to pass standard input, output, and error streams through a context.Context.
Index ¶
- func Stderr(ctx context.Context) io.Writer
- func Stdin(ctx context.Context) io.Reader
- func Stdout(ctx context.Context) io.Writer
- func WithStderr(ctx context.Context, stderr io.Writer) context.Context
- func WithStdin(ctx context.Context, stdin io.Reader) context.Context
- func WithStdout(ctx context.Context, stdout io.Writer) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithStderr ¶
WithStderr returns a new context with the given standard error stream.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.