()
| 503 | } |
| 504 | |
| 505 | func ExampleHide() { |
| 506 | myConstError := errors.ConstError("I don't want to be fmt printed") |
| 507 | err := fmt.Errorf("don't show this error%w", errors.Hide(myConstError)) |
| 508 | |
| 509 | fmt.Println(err) |
| 510 | fmt.Println(stderrors.Is(err, myConstError)) |
| 511 | |
| 512 | // Output: |
| 513 | // don't show this error |
| 514 | // true |
| 515 | } |
| 516 | |
| 517 | type MyError struct { |
| 518 | Message string |
nothing calls this directly
no test coverage detected
searching dependent graphs…