Hello I am currently writing a Go program that reads GPIO pins on a linux kernel that is about 7 years old at this point. The Go package periph.io/x/periph/conn/gpio is discontinued and replaced by something that is not working with my version of linux. I have all the old periph.io files locally and have moved them into my directory.
Example:
My file Stucture
I do not understand how to set up go.mod so that it will use these local packages that I have. Any sort of help on this would be awesome. Here is my current go.mod setup
module pintesting
go 1.22.2
When I try to import the package periph.io/x/periph/conn/gpio in my main.go at the top it does not know what I am trying to do.
I have tried a couple different things like this link here but it is not working:
Accessing local packages within a go module (go 1.11)
your text
Andrew Eblen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.