How can I compare the interface ?
I want to implement a generic function.
the <=    >=  report error in this code

func InRange(a, b, c interface{}) bool {
   if c >= a && c <= b {
      return true
   } else {
      return false
   }
}

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to