hi,
I am struggling with the new go version.
I have a simple script that imports a github module, and before (don't know which go version) I could just run:
go get github/user/module
and then in my crappy script I could
package main
func main() {
p := module.New()
p.run(whatever)
}
but this now exits with the error:
no required module provides package
github.com/user/module: go.mod file not found in current directory or any parent directory; see 'go help modules'
I do not want to write a module, I just want to use a module. So how do I do this? I am reading all the tutorials listed on the go help modules output, but at this point I do not need to write a module.
A bit confused. I am obviously doing it wrong, but I cannot understand why.
Any help greatly appreciated.
Regards,
Natxo