Update README.md

Update the go doc link to the v4 version
This commit is contained in:
Drahoslav Bednář 2021-08-19 12:59:29 +02:00 committed by GitHub
parent 6c3791555a
commit cdf314c67a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ go-rpio
Native GPIO-Gophers for your Pi! Native GPIO-Gophers for your Pi!
**Documentation:** [![GoDoc](https://godoc.org/github.com/stianeikeland/go-rpio?status.svg)](https://godoc.org/github.com/stianeikeland/go-rpio) **Documentation:** [![GoDoc](https://pkg.go.dev/badge/github.com/stianeikeland/go-rpio)](https://pkg.go.dev/github.com/stianeikeland/go-rpio/v4)
go-rpio is a Go library for accessing [GPIO](http://elinux.org/Rpi_Low-level_peripherals)-pins go-rpio is a Go library for accessing [GPIO](http://elinux.org/Rpi_Low-level_peripherals)-pins
on the [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi). on the [Raspberry Pi](https://en.wikipedia.org/wiki/Raspberry_Pi).
@ -33,7 +33,6 @@ import "github.com/stianeikeland/go-rpio/v4"
``` ```
If you're using an older go.mod incompatible you should instead use: If you're using an older go.mod incompatible you should instead use:
```go ```go
import "github.com/stianeikeland/go-rpio" import "github.com/stianeikeland/go-rpio"
``` ```