title: What is the difference in domain usage when listening to a socket?
body: <p>I came across some differences between some examples that I looked at, and realized that some use domains and some do not. What is the real difference between the two?</p>
  
  <pre><code>net.Listen("tcp", ":8080")
  net.Listen("tcp", "localhost:8080")
  </code></pre>