title: How can I compile a Go program?
body: <p>I got <strong>Go</strong> to compile: </p>
  
  <pre>
  0 known bugs; 0 unexpected bugs
  </pre>
  
  <p>and typed in the "hello world":</p>
  
  <pre><code>package main
  
  import "fmt"
  
  func main() {
    fmt.Printf("Hello, 世界\n")
  }
  </code></pre>
  
  <p>Then I tried to compile it, but it wouldn't go:</p>
  
  <pre>
  $ 8c gotest2
  gotest2:1 not a function
  gotest2:1 syntax error, last name: main
  </pre>
  
  <p>This is going on on Ubuntu Linux on Pentium. Go installed and passed its tests. So where did I go wrong? Can someone tell me where to go from here?</p>
  
  <p>I also tried <a href="http://golang.org/doc/go_tutorial.html#tmp%5F32" rel="noreferrer">this program</a>:</p>
  
  <pre><code>package main
  
  import fmt "fmt"  // Package implementing formatted I/O.
  
  
  func main() {
      fmt.Printf("Hello, world; or Καλημέρα κόσμε; or こんにちは 世界\n");
  }
  </code></pre>
  
  <p>But this was also no go <sub>(must stop making go puns)</sub>:</p>
  
  <pre>
  $ 8c gotest3.go
  gotest3.go:1 not a function
  gotest3.go:1 syntax error, last name: main
  </pre>