io

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package io ships process-stdio stream primitives: io.stdin reads newline-delimited items from standard input; io.stdout and io.stderr write each item as a line and pass it through. Neither sink owns the stream — the CLI still writes the final payload to stdout.

Index

Constants

View Source
const ID = "io"

Variables

This section is empty.

Functions

func Bundle

func Bundle(_ map[string]string) core.Bundle

func InSource

func InSource() action.AnyStreamAction

InSource returns the io.stdin stream source reading process stdin.

func Library

func Library() action.Library

func StderrOperator

func StderrOperator() action.NamedOperator

StderrOperator returns io.stderr: each item is written as a line to stderr and passed through unchanged.

func StdoutOperator

func StdoutOperator() action.NamedOperator

StdoutOperator returns io.stdout: each item is written as a line to stdout and passed through unchanged.

Types

type InConfig

type InConfig struct {
	// Format selects the decoder for each line. "lines" (default) yields
	// raw strings; "ndjson" parses one JSON value per line.
	Format string `json:"format" cli:"format"`
}

InConfig controls io.stdin's per-line decoding.

Jump to

Keyboard shortcuts

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