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
I'm not sure whether there's a better behavior than a panic, for example returning nil, nil, or nil, <some error>. I don't know what the standard library policy is around this sort of thing. It maybe that this is sufficiently unimportant and core that it's best not to change the behavior. Please consider?
What did you see instead?
io.ReadAll(nil) panics.
The text was updated successfully, but these errors were encountered:
Go version
go version go1.21.4 linux/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
io.ReadAll(nil)
panics. Please consider whether alternative behavior would be better?https://go.dev/play/p/TQg_nv6icS0
What did you expect to see?
I'm not sure whether there's a better behavior than a panic, for example returning
nil, nil
, ornil, <some error>
. I don't know what the standard library policy is around this sort of thing. It maybe that this is sufficiently unimportant and core that it's best not to change the behavior. Please consider?What did you see instead?
io.ReadAll(nil)
panics.The text was updated successfully, but these errors were encountered: