Update README.md to up golang version to 1.22 (#6899)

Signed-off-by: xinbenlv <zzn-github@zzn.im>
This commit is contained in:
xinbenlv 2024-10-01 07:57:14 -07:00 committed by GitHub
parent f4f0d55dce
commit 144b0f5359
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,7 +76,7 @@ setup a Go environment, you could build CoreDNS easily:
```
docker run --rm -i -t \
-v $PWD:/go/src/github.com/coredns/coredns -w /go/src/github.com/coredns/coredns \
golang:1.21 sh -c 'GOFLAGS="-buildvcs=false" make gen && GOFLAGS="-buildvcs=false" make'
golang:1.22 sh -c 'GOFLAGS="-buildvcs=false" make gen && GOFLAGS="-buildvcs=false" make'
```
The above command alone will have `coredns` binary generated.