lib / pq

Pure Go Postgres driver for database/sql
https://pkg.go.dev/github.com/lib/pq
MIT License
8.86k stars 908 forks source link

update readme.md #1105

Open Sajiyah-Salat opened 1 year ago

Sajiyah-Salat commented 1 year ago

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.

ghost commented 1 year ago

Hey! Have you tried running go mod init in your project's root directory? Give that a try, then run the go get github.com/lib/pq command.

Let me know how that works!