CodyIT@programming.dev to Golang@programming.devEnglish · 13 days agoOne mistake no one has ever made. Right?pvs-studio.comexternal-linkmessage-square2linkfedilinkarrow-up17arrow-down13
arrow-up14arrow-down1external-linkOne mistake no one has ever made. Right?pvs-studio.comCodyIT@programming.dev to Golang@programming.devEnglish · 13 days agomessage-square2linkfedilink
minus-squarewho@feddit.orglinkfedilinkEnglisharrow-up3·edit-213 days agoThis 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.
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.