This seems like it would be a fairly common thing and abundant examples across the interwebs, but I can\'t seem to find an example of how to convert an [32]byte
You can generally slice an array by its bounds with : :
var a [32]byte
slice := a[:]
More generally, for the following array :
var my_array [LENGTH]TYPE
You can produce the slice of different sizes by writing :
my_array[START_SLICE:END_SLICE]
Omitting START_SLICE if it equals to the low bound and END_SLICE if equals to the high bound, in your case :
a[0:32]
Produces the slice of the underlying array and is equivalent to :
a[0:]
a[:32]
a[:]