[go-nuts] Re: Sorting user defined collection in multiple ways

2017-07-25 Thread Srinivas Kandula
Thank you very much Valentin !!, This is exactly what i am looking for. Thanks, Srinivas K On Friday, July 21, 2017 at 7:47:13 PM UTC+5:30, Val wrote: > > Hello Srinivas > > The traditional way to achieve this in go (as showcased here > and here >

[go-nuts] Re: Sorting user defined collection in multiple ways

2017-07-21 Thread Val
Hello Srinivas The traditional way to achieve this in go (as showcased here and here ) is, to : - declare a named type of slice - implement 3 methods Len, Less, Swap