title: How to execute this Go binary?
body: <p>I am told to build a go binary and execute it like this.</p>
  
  <pre><code>go build hello-world.go
  $ ls
  hello-world hello-world.go
  
  ./hello-world
  hello world
  </code></pre>
  
  <p>So <code>go build hello-world.go</code> takes the human-readable <code>hello-world.go</code> file and creates a binary file.</p>
  
  <p>My two questions are:</p>
  
  <ol>
  <li><p>Typically, what are the advantages of compiled code and a file that is directly executable? Is it that it's NOT dependent on your OSX or any other dependencies? How come?</p></li>
  <li><p>Why does <code>./hello-world</code> execute the created binary.</p></li>
  </ol>