1 package emperror 2 3 // Handler is responsible for handling an error. 4 // 5 // This interface allows libraries to decouple from logging and error handling solutions. 6 type Handler interface { 7 // Handle takes care of unhandled errors. 8 Handle(err error) 9 } 10