title: Go project with 2 executables
body: <p>Hi all I am fairly new to Golang, I am writing a toy client and server app just to learn the libraries.</p>
  
  <p>But I have the project folder:</p>
  
  <pre><code>philipherron@Philips-iMac {~/workspace/gospace/src/github.com/redbrain/station} $ echo $GOPATH
  /Users/philipherron/workspace/gospace
  </code></pre>
  
  <p>I wanted to have 2 binaries:</p>
  
  <ul>
  <li>client.go</li>
  <li>server.go</li>
  </ul>
  
  <p>But when I build I get:</p>
  
  <pre><code>philipherron@Philips-iMac {~/workspace/gospace/src/github.com/redbrain/station} $ go build github.com/redbrain/station/
  # github.com/redbrain/station
  ./server.go:5: main redeclared in this block
      previous declaration at ./client.go:5
  </code></pre>
  
  <p>I guess this is because it looks like I am making to mains in the same package.</p>
  
  <p>So I tried creating a client and a server subdir and have the binaries in each of those, but I get:</p>
  
  <pre><code>philipherron@Philips-iMac {~/workspace/gospace/src/github.com/redbrain/station} $ go build github.com/redbrain/station/client
  go install github.com/redbrain/station/client: build output "client" already exists and is a directory
  </code></pre>
  
  <p>I guess this is because I have the layout of:</p>
  
  <pre><code>$ tree
  .
  ├── client
  │   └── client.go
  └── server
      └── server.go
  
  2 directories, 4 files
  </code></pre>
  
  <p>Not sure how to get around this, it would just be nice to have the same client and server in the same directory but maybe this is against how I should be doing things in go?</p>