title: Is there a way to set an environment variable before any import in Go?
body: <p>I'm currently testing the <a href="https://github.com/veandco/go-sdl2" rel="nofollow">Go-SDL2</a> lib, just for fun. I gave the binary to one of my friend but he doesn't have the SDL installed on his machine. So all I want to do (is dance) is to distribute the 4 .so libs with the binary so that it will work fine on other Linux machines. It's pretty easy actually, I just have to set the LD_LIBRARY_PATH to point to the current folder. This is for <strong>testing</strong> purpose.</p>
  
  <p>The problem is, I have to set this environment variable <strong>before</strong> I can import the go-sdl2 lib. For now I have a single source file (main.go  obviously). </p>
  
  <p>How can I achieve this ? (Is it even possible ?)</p>