title: Convert substring to int in golang
body: <p>I have this variable:</p>
  
  <pre><code>danumber := "542353242"
  </code></pre>
  
  <p>and want to extract a character from the string and operate with it as a number.
  Tried this:</p>
  
  <pre><code>int(danumber[0])
  </code></pre>
  
  <p>but it doesn't seem to work. </p>