tasks

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeResults

func MergeResults(results []CorrelatedResult, formatter func(CorrelatedResult) string) error

Joins and formats results, with the provided formatter. The result is skipped if the formatter returns an empty string. Returns nil if all errors are nil.

Types

type CorrelatedResult

type CorrelatedResult struct {
	Input string
	Error error
}

func ApplyInParallel

func ApplyInParallel(names []string, action func(string) error) []CorrelatedResult

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL