title: Google App Engine with Golang: How do you parse URL path segments as variables?
body: <p>In Google App Engine with Go, I would like to take a URL like this:</p>
  
  <pre><code>http://www.example.com/api/account/123456/product/573832
  </code></pre>
  
  <p>and treat it like this:</p>
  
  <pre><code>http://www.example.com/api/account/{acctId}/product/{prodId}
  </code></pre>
  
  <p>Then access <code>acctId</code> and <code>prodId</code> in my handler function.</p>
  
  <p>How do I do this?</p>