Documentation ¶ Index ¶ func ForInt(to int, fn ForIntFn) error type ForIntFn Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ForInt ¶ func ForInt(to int, fn ForIntFn) error ForInt iterate a function in parallel using goroutines Adapted from https://github.com/tsenart/nap scatter() function It waits for all goroutines to finish and returns the first error, if any; to <= 0 returns nil Types ¶ type ForIntFn ¶ type ForIntFn func(i int) error Source Files ¶ View all Source files for.go Click to show internal directories. Click to hide internal directories.