Go range iterators demystified
Introduction
We're using Go to write Dolt, the world's first version-controlled SQL
database. Like most large Go codebases, we have a lot of collection types that we iterate over. New
in Go 1.23, you can now use the range keyword to iterate over
custom collection types.
How does that work? Is it a good idea? Let's dive in.
If you want to run any of the code in this tutorial, you'll need to install the Go 1.23 release
candidate, or run Go
1.22 with this in your environment:
export GOEXPERIMENT=ra...
Read more at dolthub.com