title: Get the parent path
body: <p>I am creating Go command-line app and I need to generate some stuff in the current directory (the directory which the user execute the commands from)</p>
  
  <p>to get the <code>pwd</code> I need to use </p>
  
  <pre><code>os.Getwd()
  </code></pre>
  
  <p>but this give me path like </p>
  
  <pre><code>/Users/s05333/go/src/appcmd
  </code></pre>
  
  <p>and I need path like this</p>
  
  <pre><code>/Users/s05333/go/src/
  </code></pre>
  
  <p>which option I've in this case?
  Omit the last string after the <code>/</code> or there is better way in Go?</p>