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

howto needs updated as go get no longer supported #1089

Open jlshelby opened 1 year ago

jlshelby commented 1 year ago

$ go get github.com/lib/pq 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 or run 'go help get' or 'go help install'.

ralfonso-directnic commented 1 year ago

This is not an issue for pq, this is because you are not using a module, run go mod init in your code folder and then go get