March 2019
Intermediate to advanced
336 pages
9h 9m
English
The multiSorter class consists of the commits and lessFunction array properties. The multiSorter class implements the Sort interface to sort the commits, as shown in the following code:
type lessFunc func(p1 *Commit, p2 *Commit) bool// multiSorter classtype multiSorter struct { Commits []Commit lessFunction []lessFunc}
The different methods of the multiSorter class are discussed in the following sections.
Read now
Unlock full access