stianeikeland / go-rpio

:electric_plug: Raspberry Pi GPIO library for go-lang
MIT License
2.16k stars 221 forks source link

cannot find package "github.com/stianeikeland/go-rpio/v4" #69

Open soerenbrockmann opened 3 years ago

soerenbrockmann commented 3 years ago

Hi,

when importing the package for v4 like

import "github.com/stianeikeland/go-rpio/v4"

I get this error:

main.go:32:2: cannot find package "github.com/stianeikeland/go-rpio/v4" in any of: /usr/local/go/src/github.com/stianeikeland/go-rpio/v4 (from $GOROOT)

go get github.com/stianeikeland/go-rpio/v4

cannot find package "github.com/stianeikeland/go-rpio/v4" in any of: /usr/local/go/src/github.com/stianeikeland/go-rpio/v4 (from $GOROOT)

returns the same error. What am I missing here?

sagikazarmark commented 3 years ago

You need to use Go Modules.