Go error: cannot find main module, but found .git/config
March 16th, 2023
fixing error
error:
go: cannot find main module, but found .git/config in [redacted]
fix:
go mod init cards
(src)
(this adds a file "go.mod" containing:
module cards
go 1.20
the src mentions it's better to use git or something
This post was referenced in: