io package
Canonical docs for Reader, Writer, Copy, pipe, and stream-oriented interfaces in Go.
Canonical docs for Reader, Writer, Copy, pipe, and stream-oriented interfaces in Go.
- Author: Go Team
- Authority: primary
- Kind: package-doc
- URL: https://pkg.go.dev/io
What it covers
- Reader and Writer contracts
- stream composition
- copying and adaptation helpers
Why authoritative
Official package documentation for Go’s core streaming interfaces.
Use when
- how should I use io.Reader in Go
- what does io.Copy do here
- how should Go streaming APIs be shaped
Keywords
- io, io.Reader, io.Writer, streaming, copy