fix: add comments

This commit is contained in:
Jose Diaz-Gonzalez
2020-12-30 00:28:59 -05:00
parent 5da5a6fe5f
commit 38b96c1e27

View File

@@ -133,8 +133,12 @@ func createParallelWorkerPool(jobs chan string, results chan parallelCommandResu
close(results)
}
// ReportFunc is a type that declares functions
// useful for :report subcommands
type ReportFunc func(string) string
// CollectReport iterates over a set of report functions
// to collect the :report output in parallel
func CollectReport(appName string, flags map[string]ReportFunc) map[string]string {
var sm sync.Map
var wg sync.WaitGroup