Skip to content
masterclass Buddy

Go · Function

io.ReadAll

ioutil.ReadAll reads all data from an io.Reader until EOF. It is deprecated since Go 1.16; use io.ReadAll in new code.

Last updated

Syntax

func ReadAll(r io.Reader) ([]byte, error)

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

Subscribe
  • io.ReadAll
  • io.LimitReader
  • io.Reader

Source: ioutil package - io/ioutil - Go Packages. Checked 2026-11-03.