stream
Package stream provides io helpers similar to Node.js streams. Node equivalent: stream, fs.createReadStream pipe
import "github.com/sahilkhaire/gox/stream"
Select a symbol below — each page explains what it does, shows Node.js vs Go comparisons, and includes a runnable example.
Functions
| Symbol | Node.js | Kind | Summary |
|---|---|---|---|
| Pipe | src.pipe(dst) | func | Pipe copies from src to dst until EOF or error. |
| ReadAll | — | func | ReadAll reads r until EOF or ctx is cancelled. |
| TeeReader | — | func | TeeReader returns a Reader that writes to w what it reads from r. |
| Transform | — | func | Transform returns a Reader that applies fn to each chunk from reader. |