Live Template to Create a for Loop

Benchmark loops are repetitive, so let the IDE handle this for you.

In a Benchmark function, start typing for and select the for loop Live Template from the list that matches the common benchmark loop for i := 0; i < b.N; i++ {}.

Related Resources

Live Template to Write Benchmark Functions
Live Template to Write Benchmark Functions
Write benchmarks quicker thanks to the builtin bench live template.
Live Template to Create Test Function
Live Template to Create Test Function
Write tests faster thanks to the builtin func Test live template.
Generate Tests for Generic Functions
Generate Tests for Generic Functions
Use a shortcut to generate test files for your generic functions.