Documentation ¶ Index ¶ func TopN(data sort.Interface, tn int) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func TopN ¶ func TopN(data sort.Interface, tn int) Sort sorts data in ascending order as determined by the Less method. It makes one call to data.Len to determine n and O(n*log(n)) calls to data.Less and data.Swap. The sort is not guaranteed to be stable. Types ¶ This section is empty. Source Files ¶ View all Source files topn.go Click to show internal directories. Click to hide internal directories.