Live Template to create a for loop in benchmark functions

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

How to use:

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

Generate tests for generic functions
Use a shortcut to generate test files for your generic functions.
Integrated Go Playground
You can format and share your code, change the Go version, and run your code using the Go playground server.
Live Template to create test function
Write tests faster thanks to the builtin func Test live template.