Firstly, I'm a massive fan of the Jet Brains products and have been using PyCharm for years with absolutely no issues but this one has me stumped (probably an easy solution).
So I'm learning go and my file structure is:
Now from main.go I can import package "name-of-api" and run the build etc and the application runs just fine, but in the inspection the import is red and says can't resolve file. This also means my autocomplete for packages and sub-packages isn't working for me.
I've set the top directory as sources root which fixes this in PyCharm but having no luck here, could someone advise?
N.B. I'm new to Go, be nice