error.go 186 B

123456789101112131415
  1. package ctrlc
  2. import "context"
  3. type Error struct {
  4. error
  5. }
  6. func AppError(err error) *Error {
  7. return &Error{err}
  8. }
  9. func (c *Error) Shutdown(ctx context.Context) error {
  10. return c
  11. }