this post was submitted on 16 Jul 2026
4 points (70.0% liked)

Golang

2711 readers
4 users here now

This is a community dedicated to the go programming language.

Useful Links:

Rules:

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] who@feddit.org 3 points 5 days ago* (last edited 5 days ago)

This is a thinly veiled advertisement.

tl;dr: The length of a slice is not a valid index into that slice.

Of course. Because Go uses zero-based indexing, just like many other languages.