title: How to get the reflect.Type of an interface?
body: <p>In order to determine whether a given type implements an interface using the reflect package, you need to pass a reflect.Type to reflect.Type.Implements().  How do you get one of those types?</p>
  <p>As an example, trying to get the type of an uninitialized <code>error</code> (interface) type does <strong>not</strong> work (it panics when you to call Kind() on it)</p>
  <pre><code>var err error
  fmt.Printf(&quot;%#v\n&quot;, reflect.TypeOf(err).Kind())
  </code></pre>