Been searching around, still new to golang, PHP and ruby have an unpack function that unpacks a binary into an array. I'm trying to figure out how to do the following in golang.
$test = "\01\00\02\03";
print_r(unpack("C*", $test)); // [1,0,2,3]
Or
s = "\01\00\02\03"
arr = s.unpack("C*")
p(arr) # [1,0,2,3]
What's the best approach to doing this using golang?