for
loop GO-P4001Using non-idiomatic slice zeroing might not get recognized by the compiler for further optimizations. Using the idiomatic slice zeroing method is recommended so the compiler can optimize it during compilation.
for i := 0; i < len(b); i++ { b[i] = 0 }
for i := range b { b[i] = 0 }