package
module
Version:
v0.0.0-...-20ece0e
Opens a new window with list of versions in this module.
Published: May 27, 2022
License: MIT, Unlicense
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
This package provides utility functions for use in Go projects.
Documentation
¶
AppendErr an error to another, forming a list.
func Collect[T any](ch chan T) (out []T)
Collect buffers values from a channel until closed, returning a slice
containing the values.
Fanout will do an n-wide Fanout invoking the provided function
with the current index.
After the Fanout completes any errors will be coalesced into
a single error value.
The caller can decide if errors are fatal.
Inspect the errors by asserting to []error.
For executes a serialized n-wide fanout invoking the provided
function with the current index.
Errors represents a list of errors as a single error.
Pretty breaks errors over newlines.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.