On Thu, Jan 5, 2017 at 5:29 PM, hui zhang wrote:
>
> 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
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 t