title: Get Golang flags as byte array
body: <p>I am using <code>flag</code> package to read all the parameters I am passing to my Golang program. The problem is that if I pass an argument such as <code>"\x41BC"</code>, it is not read as a 3 byte array (with chars <code>'A'</code>, <code>'B'</code> and <code>'C'</code>), but as a 6 byte array (<code>'\'</code>, <code>'x'</code>, <code>'4'</code>, <code>'1'</code>, <code>'B'</code>, <code>'C'</code>).</p>
  
  <p>If it could be useful to answer, I am reading that string using:</p>
  
  <pre><code>flag.StringVar(&amp;param, "param", "", "the param with hex chars")
  </code></pre>
  
  <p>Is there a way to avoid this?</p>
  
  <p>Thanks in advance!</p>