You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Examples in package sort look a bit more complicated than a person new to it needs.
I'm referring specifically to sort.Interface example and SortKeys, SortMultiKeys
examples in the overview of the package.
These are great pieces of code and demonstrate language flexibility but they look rather
intimidating at first.
I propose replacing sort.Interface example (while still keeping the original one with a
different name) with something that clearly demonstrates usage of the interface, like:
http://play.golang.org/p/WRY2lXlsiW
Also, this would be a better example to come first in the package overview, since
SortKeys example is too huge to introduce user to the package.
The text was updated successfully, but these errors were encountered:
CL submitted at https://golang.org/cl/13586043/
I still don't like the overview of the package, though.
Maybe some reference to sort.Interface example would prevent someone from diving into
complicated examples first?
by Lytvynov.A.V:
The text was updated successfully, but these errors were encountered: