CodyIT@programming.dev to Golang@programming.devEnglish · 16 days agoOne mistake no one has ever made. Right?pvs-studio.comexternal-linkmessage-square2fedilinkarrow-up17
arrow-up17external-linkOne mistake no one has ever made. Right?pvs-studio.comCodyIT@programming.dev to Golang@programming.devEnglish · 16 days agomessage-square2fedilink
minus-squarewho@feddit.orglinkfedilinkEnglisharrow-up3·edit-215 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.