Go []byte to Little/Big-Endian Signed Integer or Float?
<p>I am able to convert <code>[]byte</code> into unsigned integers:</p>
<pre><code>a := binary.LittleEndian.Uint16(sampleA)
b := binary.BigEndian.Uint32(sampleB)
</code></pre>
<p>This leverages the BigEndian and LittleEndian types within the Go package  <a href="https://golang.org/src/encoding/binary/binary.go" rel="nofollow noreferrer">https://golang.org/src/encoding/binary/binary.go</a>.</p>
<p>This provides <code>Uint16()</code> however there are no equivalent <code>Int16()</code> or <code>Float32()</code>.</p>
<p>Any thoughts on why not? Also, how ought this be done?</p>