I think go get method is deprecated because when I ran
go get github.com/lib/pq
I got:
go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
To build and install a command, use 'go install' with a version,
like 'go install example.com/cmd@latest'
For more information, see https://golang.org/doc/go-get-install-deprecation
I am a beginner and I dont understand much please help.
I think go get method is deprecated because when I ran go get github.com/lib/pq I got: go: go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation I am a beginner and I dont understand much please help.