Wanted to work on a Go program outside of go sub-directory. It also used an SQLite Library. For me 2 steps required
- go mod init github.com/billb2050/SQLite
- go get github.com/mattn/go-sqlite3
I was concerned because I already have an SQLite project in go/src like step 1. But it worked. I guess it takes into account the directory you’re in.