1 package emperror 2 3 type noopHandler struct{} 4 5 // NewNoopHandler creates a no-op error handler that discards all received errors. 6 // Useful in examples and as a fallback error handler. 7 func NewNoopHandler() Handler { 8 return &noopHandler{} 9 } 10 11 func (*noopHandler) Handle(err error) {} 12