forked from lainio/err2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove try.TryX and try.CheckX functioncs
try.Try and try.Check can be used. This just requires an intermediate error variable. In many real world cases this is a good way to make code readable. This aligns the library to community feedback and this proposal: golang/go#56165
- Loading branch information
Showing
5 changed files
with
102 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
@gregwebs thanks for the proposal. Looking forward to go with try. Nice work!