Exploring experimental feature of GO 1.22 Documentation Read the docs : https://go.dev/wiki/RangefuncExperiment Requirements Requires : Go 1.22.x Instructions ## run GOEXPERIMENT=rangefunc go run . ## build GOEXPERIMENT=rangefunc go build -o main.exe main.go