title: How to switch on reflect.Type?
body: <p>I have managed to do this, but it does not look efficient:</p>
  
  <pre><code>var t reflect.Type
  switch t {
  case reflect.TypeOf(([]uint8)(nil)):
      // handle []uint8 array type
  }
  </code></pre>