title: Go net/http unix domain socket connection
body: <p>I am having trouble connecting to my server, which listens on a Unix Domain Socket.</p>
  
  <p>Go's <code>net/http</code> package doesn't seem to be able to use socket paths to connect to a target.</p>
  
  <p>Is there a good alternative without having to create my own HTTP Protocol implementation using <code>net</code>?</p>
  
  <hr>
  
  <p>I found lots of solutions like <a href="https://stackoverflow.com/questions/2886719/unix-sockets-in-go">these</a>, but they are unsuitable</p>
  
  <p>I have tried:</p>
  
  <p><code>_, err := http.Get("unix:///var/run/docker.sock")</code> (changing <code>unix</code> to <code>path</code>/<code>socket</code>. It always complains about an unsupported protocol</p>