March 2019
Intermediate to advanced
336 pages
9h 9m
English
The Sort method is a function with the byFactor parameter, as shown here:
// Sort method func (byFactor ByFactor) Sort(Things []Thing) { var sortedThings *ThingSorter sortedThings = &ThingSorter{ Things: Things, byFactor: byFactor, } sort.Sort(sortedThings)}
Read now
Unlock full access