Go 1.22 features

I’m trying to import the Standard Library “maps” and “slices” was running into a problem with that so updated my go.mod

module chessboard

go 1.23.0

toolchain go1.24.1

//require golang.org/x/exp v0.0.0-20250305212735-054e65f0b394

I ran go clean -modcache and go mod tidy
when I do the require statement goes back into go.mod
which seems to be messing up my use of maps and slices. No idea what to try now.

I figured out that my issue was because I was trying to use the Standard library function map.Keys() is wasn’t introduced until 1.23 so whenever I was running go mod tidy it was requiring go 1.23. I ended up getting the keys though a loop and that solved my problem.