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.
SubscribeRelated
io.ReadAllio.LimitReaderio.Reader