Go Range Loop Internals
▻https://garbagecollected.org/2017/02/22/go-range-loop-internals
While they are very convenient, I always found Go’s range loops a bit mystifying. I’m not alone in this: Today’s #golang gotcha: the two-value range over an array does a copy. Avoid by ranging over the pointer instead.▻https://t.co/SbK667osvA