I have a slice
var slice []uint
slice = [1,2,3,4,5,6,7,8,9,10]
i want to encode this as packed binary data, slice to Binary.LittleEndian.PutUint32(byte, slice) does not work, and i want this to be a short uint(2 byte one) rather than the standard 4 byte uint. Cannot seem to find a method to do this. this packed binary data will be written to a file.