GoLang Int24 to Int32 : <p>Hi guys i wrote this function in GoLang to cast a 24 bit int (3 bytes) to a 32 bit int (4 bytes)</p>

<pre><code>func int24ToInt32(bytes []byte) uint32 {
    return binary.BigEndian.Uint32(append([]byte{0x00}, bytes...))
}
</code></pre>

<p>I want to know if this is a bad solution to the problem. Maybe someone can guide me out to a better and efficient solution</p>
