Quando tento fazer o go get, estou recebendo o erro de que o goget nao existe mais
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'.
Se tento fazer go install, recebo os erros abaixo
➜ loja go install github.com/lib/pq
go: 'go install' requires a version when current directory is not in a module
Try 'go install github.com/lib/pq@latest' to install the latest version
➜ loja go install github.com/lib/pq@latest
package github.com/lib/pq is not a main package
Se faço o go mod init (não sei se estou fazendo certo), aparentemente ele cria o go.mod direitinho, mas ele dá pau na hora de rodar o go mod tidy"
➜ loja go mod init github.com/lib/pq
go: creating new go.mod: module github.com/lib/pq
go: to add module requirements and sums:
go mod tidy
➜ loja go mod tidy
github.com/lib/pq imports
https://github.com/lib/pq: malformed import path "https://github.com/lib/pq": double slash
Acho que já tá na hora de atualizar essa aula... não consegui seguir a aula...