iox

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(streams ...any) error

func IsConsoleModeEnabled

func IsConsoleModeEnabled() bool

func NewContextReader

func NewContextReader(ctx context.Context, r io.Reader) *contextReader

func NewOnlyWriter

func NewOnlyWriter(w io.Writer) io.Writer

func Output

func Output(output string) (io.Writer, error)

func SelectWriter

func SelectWriter(predicate bool, trueValue io.Writer, falseValue io.Writer) io.Writer

func SetConsoleModeEnabled

func SetConsoleModeEnabled(value bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL