3 ms·
If you find the official release notes a bit dry, I've made an interactive version: https://antonz.org/go-1-22 https://antonz.org/go-1-22
by nalgeon 3y ago
If you find the official release notes a bit dry, I've made an interactive version: https://antonz.org/go-1-22 https://antonz.org/go-1-22
- thatswrong0 3y agoThank you this is awesome. I find it so much quicker to read and understand things like this with examples.. and these are runnable / editable! Sick.
- justinclift 3y agoCool, that does help. It wasn't immediately obvious what the problem with the for loop sharing thing meant, but seeing it run and give unexpected results helped. :)
- drewlesueur 3y agoreally cool
- yeonsh 3y agoOh, it's great.
- scns 3y agoThe Compact and Replace examples leave me puzzled, are they correct?
- nalgeon 3y agoThey are correct. > Functions that shrink the size of a slice (Delete, DeleteFunc, Compact, CompactFunc, and Replace) now zero the elements between the new length and the old length.