Ok I'm officially stumped. I've reviewed these 4 similar questions/answers:
go no required module provides package mux error
Could not import ... (no required module provides package)
Could not import local modules in Golang
VSCode: Could not import Golang package
...and they all basically repeat the same answer of running go mod init <name>
and go mod tidy
which I've done numerous times, same issue persists.
I do not have this package uploaded to a github repo, it's just stored locally on my Windows machine. I have run the commands:
go mod init go_backtest
go mod tidy
...and I am still seeing these all over the place:
what's interesting is there is NOT a red underline under the "go_backtest/strategies"
line:
This is what the go.mod file looks like:
module go_backtest
go 1.19
I'm still a newbie to golang so be kind, but how can I get this thing to "compile" and run (and make those red underlines go away!)