title: invalid operation: a > b (operator > not defined on interface)
body: <p>Is it possible to compare two interface values in Go?</p>
  <p>For example:</p>
  <pre class="lang-golang prettyprint-override"><code>func compare(a interface{}, b interface{}) {
      if a &gt; b {
          fmt.Printf(&quot;%v is bigger than %v&quot;, a, b)
      }
  }
  
  </code></pre>
  <p>But finally, I got the compiler error:</p>
  <pre class="lang-sh prettyprint-override"><code>invalid operation: a &gt; b (operator &gt; not defined on interface)
  </code></pre>
  <p>Playground: <a href="https://play.golang.org/p/iyfw3u6-VeY" rel="nofollow noreferrer">https://play.golang.org/p/iyfw3u6-VeY</a></p>