March 2019
Intermediate to advanced
336 pages
9h 9m
English
In the following code snippet, the Sort method of multiSorter sorts the Commits array by invoking sort.Sort and passing the multiSorter argument:
// Sort methodfunc (multiSorter *multiSorter) Sort(Commits []Commit) { multiSorter.Commits = Commits sort.Sort(multiSorter)}
Read now
Unlock full access