title: Convert float64 to byte array
body: <p>How can I convert a float64 variable to big endian encoded byte array?</p>
  
  <pre><code>var f float64 = 12.666512
  var result []byte = float64ToByte(f);
  fmt.Printf("result:%f",result)
  </code></pre>
  
  <p>For the sake of clarity how should I implement <code>float64ToByte</code> function in the following playground?</p>
  
  <p><a href="https://play.golang.org/p/LevxCDd7mK" rel="noreferrer">https://play.golang.org/p/LevxCDd7mK</a></p>