File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- Package err2 provides three main functionality:
3
- 1. err2 package includes helper functions for error handling & automatic error
2
+ Package err2 is error handling solution including three main functionality:
3
+ 1. err2 package offers helper functions for error handling & automatic error
4
4
stack tracing
5
5
2. [github.com/lainio/err2/try] sub-package is for error checking
6
6
3. [github.com/lainio/err2/assert] sub-package is for design-by-contract and
Original file line number Diff line number Diff line change 1
1
/*
2
- Package try is a package for [To], [To1], and [To2] functions that implement the error
3
- checking. [To] functions check 'if err != nil' and if it throws the err to the
4
- error handlers, which are implemented by the err2 package. More information
5
- about err2 and try packager roles can be seen in the FileCopy example:
2
+ Package try is a package for error checking with the functions: [To], [To1], and
3
+ [To2]. These functions check the last given error argument isn't nil, i.e., 'if
4
+ err != nil' and if it is, it throws the err to the error handlers. More
5
+ information about err2 and try packages roles can be seen in the FileCopy
6
+ example:
6
7
7
8
...
8
9
r := try.To1(os.Open(src))
You can’t perform that action at this time.
0 commit comments