title: Convert an int to hex and then pad it with 0's to get a fixed length String
body: <p>I'm having some issues on trying to convert an <code>int</code> to hex then, padding it with <code>0</code>s in order to get a <code>6 Characters String</code> which represents the hex number.</p>
  
  <p>So far, I tried the following:</p>
  
  <pre><code>intNumber := 12
  hexNumber := strconv.FormatInt(intNumber, 16) //not working
  </code></pre>
  
  <p>And then I found out how to pad it with <code>0</code>s, using <code>%06d, number/string</code>. It makes all the strings 6 characters long.</p>
  
  <p><a href="https://play.golang.org/p/lEYcu-dfiM" rel="noreferrer">Here you can Find a Playground</a> which I set up to make some tests.</p>
  
  <p><strong>How can I achieve this in a efficient way?</strong>    </p>
  
  <p>For any Clarifications on the question, just leave a comment below.
  Thanks In advance.</p>