I have a bit-wise coded value 0b00100110
and I want to extract an array of int with bit-positions like [2,3,6]
.
I am very new to golang, so coming from C I would do this algorithmically. But I would like it to do the go-way
I have a bit-wise coded value 0b00100110
and I want to extract an array of int with bit-positions like [2,3,6]
.
I am very new to golang, so coming from C I would do this algorithmically. But I would like it to do the go-way