title: []byte to []int or []bool
body: <p>Let's say I have a <code>[]byte</code> and for the sake of making my life easier I want to convert it in a <code>[]int</code> or <code>[]bool</code> in the following way: </p>
  
  <p>Let's say I start with <code>[]byte{0x41}</code>, that is <code>0b01000001</code>. Now, what I would like to obtain is something like:</p>
  
  <pre><code>[]int{0,1,0,0,0,0,0,1}
  </code></pre>
  
  <p>or</p>
  
  <pre><code>[]bool{f,t,f,f,f,f,f,t}
  </code></pre>
  
  <p>I guess I could cycle with something like this:</p>
  
  <pre><code>mybyte &amp; (1 &lt;&lt; pos)
  </code></pre>
  
  <p>but I was looking for a more compact approach.</p>