go range_error official true

panic: runtime error: index out of range

ID: go/panic-runtime-error-index-out-of-range

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

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
1.x active

Root Cause

Accessing a slice or array with an index >= len(slice). Check the index bounds before access.

generic