go95% confidence\u2191 26
panic: runtime error: index out of range
Full error message
panic: runtime error: index out of range [10] with length 5
Solution
Accessed a slice / array element past its length. 1. Check length before indexing: `if i < len(s) { ... }`. 2. Prefer `for i, v := range s` over manual index access — `range` cannot go out of bounds. 3. If data comes from outside, validate length before trusting it.
API access
Get this solution programmatically \u2014 free, no authentication.
curl https://depscope.dev/api/error/f8591b5175083f82209bb433af36c2456cd19a372a6ee38011101d9d4e76c8cchash \u00b7 f8591b5175083f82209bb433af36c2456cd19a372a6ee38011101d9d4e76c8cc