go-for-range-experiment-example

Example code for Go generics.

Usage

for go1.22

$ GOEXPERIMENT=rangefunc go build

for go1.23

$ go build

Requirements

Go 1.22 or later

License

MIT

Author

Yasuhiro Matsumoto (a.k.a. mattn)