You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
io.ReadAll was added in Go 1.16 and replaced ioutil.ReadAll with the ioutil being deprecated with ioutil.ReadAll just calling io.ReadAll so the documentation should be correct for Go 1.16 and beyond. Not sure if there is a way to see documentation for older releases via the website. godoc would work locally, however.
As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details.
https://golang.org/pkg/os/exec/#Cmd.StderrPipe
The StderrPipe example has an error in it. It refers to "io.ReadAll" and it should be "ioutil.ReadAll" from io/ioutil package.
The text was updated successfully, but these errors were encountered: