ioeither

package
v1.0.39 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ReadFromStdIn reads the data blob from stdin
	ReadFromStdIn = IOEF.ReadAll(IOE.Of[error](os.Stdin))

	// ReadFromInput reads a byte array either from a file or from stdin (using "-" as the stdout identifier)
	ReadFromInput = F.Flow2(
		U.IsNotStdinNorStdout,
		O.Fold(F.Constant(ReadFromStdIn), IOEF.ReadFile),
	)
)

WriteToOutput stores a file list either to a regular file or stdout (using "-" as the stdout identifier)

Functions

func WriteToStdOut

func WriteToStdOut(data []byte) IOE.IOEither[error, []byte]

WriteToStdOut writes the data blob to stdout

Types

This section is empty.

Jump to

Keyboard shortcuts

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