Skip to content

Commit

Permalink
Problem: go 1.22 used
Browse files Browse the repository at this point in the history
Solution: fix a README and GHA
  • Loading branch information
vyskocilm committed Jul 22, 2024
1 parent cbd70b2 commit 5a5799c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] [email protected]
$ export GOTOOLCHAIN=go1.23rc2
```

## Filter the slice

Expand Down

0 comments on commit 5a5799c

Please sign in to comment.