当目标不是开发环境时如何使用EGL支持开发Go

I am trying to develop some Go application that will run on a linux-based ARM board. For development, I am using GoLand on macOS.

Now the problem is that I am using this EGL wrapper and when I try to go get it, I get this error message:

pkg-config: exec: "pkg-config": executable file not found in $PATH

That's not surprising as I am on macOS and there is not pkg-config. I understand that this call is needed to find the dependencies libegl1-mesa-dev libgles2-mesa-dev as defined in the readme. I also understand that I need those libraries compiled for the target architecture to compile my code. Achieving this does not seem to be trivial, so I'd rather avoid it.

Next thing I tried is to use go get -d which downloaded the package fine. However, GoLand does not find it this way.

So my question is: How I set up my dev environment so that the IDE can provide me with analysis while compilation will be done directly in the ARM linux environment?