Skip to content
masterclass Buddy

Go · Interface

io.Reader

bytes.Reader reads from a byte slice. It is read-only, supports seeking, and implements several Go I/O interfaces.

Last updated

Syntax

func NewReader(b []byte) *Reader

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • bytes.Buffer
  • io.Reader
  • io.ReaderAt
  • io.WriterTo
  • io.Seeker
  • io.ByteScanner
  • io.RuneScanner

Source: src/bytes/reader.go - The Go Programming Language. Checked 2026-11-03.