This only applies to string but not other types like int.

On Sun, Jan 21, 2018 at 8:18 AM Arie van Wingerden <xapw...@gmail.com>
wrote:

> https://golang.org/src/strings/compare.go
>
> 2018-01-21 14:42 GMT+01:00 Peng Yu <pengyu...@gmail.com>:
>
>> Hi, cmp() in python can return three values -1, 0, 1. Is there a
>> comparison function in golang that also return three values? Thanks.
>>
>> https://docs.python.org/2/library/functions.html#cmp
>>
>
>> --
>> Regards,
>> Peng
>>
>> --
>> 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.
>>
> --
Regards,
Peng

-- 
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