github.com/m4gshm/gollections@v0.0.13-0.20240331203319-a34a86e58a24/internal/examples/loopexamples/loop_iterating_go_1_22_test.go (about) 1 //go:build goexperiment.rangefunc 2 3 package loopexamples 4 5 import ( 6 "testing" 7 8 "github.com/m4gshm/gollections/loop/range_" 9 ) 10 11 func Test_Iterating_Rangefunc(t *testing.T) { 12 13 for i := range range_.Of(0, 100).All { 14 doOp(i) 15 } 16 17 }