diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 9a0dd1f..d26eef3 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,15 +13,13 @@ jobs: build: runs-on: ubuntu-latest - env: - GOEXPERIMENT: rangefunc steps: - uses: actions/checkout@v3 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: '1.23.0-rc.2' - name: Build run: go build -v ./... diff --git a/README.md b/README.md index 6edf60f..c8bf455 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,12 @@ chaining of iterator methods impossible. `it` provides a simple helper struct # Usage -> Don't forget to install go 1.22 and `export GOEXPERIMENT=rangefunc` +> Don't forget to install go 1.23rc2 + +```sh +$ go1.23rc2 get go@1.23rc2 toolchain@1.23rc2 +$ export GOTOOLCHAIN=go1.23rc2 +``` ## Filter the slice