sort.Sort has no return value so it cannot be used as an expression, which
is what the range clause grammar expects.

On Fri, Oct 21, 2016, 20:20 Tong Sun <suntong...@gmail.com> wrote:

> Hi,
>
> How to loop over sorted array?
>
> I got "sort.Sort used as value" error:
> https://play.golang.org/p/HP30OyJVrz
>
> Thanks
>
> --
> 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.
>
-- 

-j

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