Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrChan ¶
type ErrChan struct {
// contains filtered or unexported fields
}
Example ¶
package main import ( "fmt" "github.com/ChrisRx/pkg/errchan" ) func main() { e := errchan.New(100) e.Trace(fmt.Errorf("testing")) err := <-e.Errors() fmt.Println(err) }
Output: errchan/errchan_test.go:11 errchan_test.ExampleErrChan: testing
type ErrorProducer ¶
type ErrorProducer interface {
Errors() <-chan error
}
Click to show internal directories.
Click to hide internal directories.