changed the scope of TaskResourceNames and SortCriteria to be package private.

This commit is contained in:
Pradyumna Kaushik 2017-08-23 20:10:33 -04:00
parent c2c7a2c090
commit 3c65bdf02e
2 changed files with 8 additions and 8 deletions

View file

@ -120,7 +120,7 @@ func labelAndOrder(clusters map[int][]Task, numberOfClusters int, taskObservatio
// Be able to sort an array of tasks based on any of the tasks' resources.
// Retrieve a sorter (same signature as 'Less' function in sort.Interface) for the given sorting criteria.
func TaskSorter(sc SortCriteria, tasks []Task) func (i, j int) bool {
func TaskSorter(sc sortCriteria, tasks []Task) func (i, j int) bool {
return func (i, j int) bool {
taskIFields := reflect.Indirect(reflect.ValueOf(tasks[i]))
tasksJFields := reflect.Indirect(reflect.ValueOf(tasks[j]))