I found this StackOverflow question but it wasn't answered so I ask it again.
I have a Go project running inside a Docker container. I got my code running in the container, and I expose it via HTTP.
The problem I have is with IntelliJ and dependencies auto-completion. Since all dependencies I have are managed by docker and downloaded inside the container, IntelliJ have no idea how to auto-complete the code and furthermore, it has no idea what methods are available so my code is full of errors in IntelliJ but runs fine in the container.
Is there a way to configure IntelliJ to bind it to the container sources? Maybe with docker volumes, but I would have to setup GOPATH, etc.. on my machine, which I would prefer to avoid.