Bytes has one too: https://golang.org/pkg/bytes/#Compare

Matt

On Sunday, January 21, 2018 at 12:59:21 PM UTC-6, Arie van Wingerden wrote:
>
> https://golang.org/src/strings/compare.go
>
> 2018-01-21 14:42 GMT+01:00 Peng Yu <peng...@gmail.com <javascript:>>:
>
>> 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...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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