fix: add comments

This commit is contained in:
Jose Diaz-Gonzalez committed 2020-12-30 00:28:59 -05:00
1 parent 5da5a6fe5f
commit 38b96c1e27
1 file changed
+4
+4
View File
@@ -133,8 +133,12 @@ func createParallelWorkerPool(jobs chan string, results chan parallelCommandResu
close(results) close(results)
} }
// ReportFunc is a type that declares functions
// useful for :report subcommands
type ReportFunc func(string) string 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 { func CollectReport(appName string, flags map[string]ReportFunc) map[string]string {
var sm sync.Map var sm sync.Map
var wg sync.WaitGroup var wg sync.WaitGroup