title: How to make composite key for a hash map in go
body: <p>First, my definition of composite key - two ore more values combine to make the key. Not to confuse with composite keys in databases.</p>
  <p>My goal is to save computed values of <code>pow(x, y)</code> in a hash table, where <code>x</code> and <code>y</code> are integers. This is where I need ideas on how to make a key, so that given <code>x</code> and <code>y</code>, I can look it up in the hash table, to find <code>pow(x,y)</code>.</p>
  <p>For example:</p>
  <pre><code>pow(2, 3) =&gt; {key(2,3):8}
  </code></pre>
  <p>What I want to figure out is how to get the map key for the pair <code>(2,3)</code>, i.e. the best way to generate a key which is a combination of multiple values, and use it in hash table.</p>