title: Convert feet and inches to centimeters in Go?
body: <p>I am new to Go and I am a bit stuck on a problem regarding human height conversion from feet/inches to cm.</p>
  
  <p>How can I convert, in an efficient way, a string that looks like this <code>5'2''</code> to an centimeter int?</p>
  
  <p>Edit: 
  After some more testing I ended up with this solution. How can it be improved?</p>
  
  <pre><code>height := strings.Split("5'2''", "'")
  heightfeet,err :=strconv.ParseFloat(height[0],10)
  heightinch,err :=strconv.ParseFloat(height[1],10)
  heightcm :=heightfeet*30.48+heightinch*2.54
  </code></pre>