go runtime_error official true

panic: close of closed channel

ID: go/panic-close-of-closed-channel

Also available as: JSON · Markdown
80%Fix Rate
95%Confidence
0Evidence

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
1.x active

Root Cause

Closing a channel that is already closed. Check if channel is closed before calling close().

generic