Skip to content
Node: Node stream4 APIs

stream

Package stream provides io helpers similar to Node.js streams. Node equivalent: stream, fs.createReadStream pipe

import "github.com/sahilkhaire/gox/stream"
## API reference

Select a symbol below — each page explains what it does, shows Node.js vs Go comparisons, and includes a runnable example.

Functions

SymbolNode.jsKindSummary
Pipesrc.pipe(dst)funcPipe copies from src to dst until EOF or error.
ReadAllfuncReadAll reads r until EOF or ctx is cancelled.
TeeReaderfuncTeeReader returns a Reader that writes to w what it reads from r.
TransformfuncTransform returns a Reader that applies fn to each chunk from reader.

MIT Licensed · Built for Node.js developers moving to Go