File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -11,19 +11,22 @@ type (
11
11
// ErrFn is function type for try.OutX handlers.
12
12
ErrFn = func (err error ) error
13
13
14
- // Result is the base of our error handling DSL for try.Out functions.
14
+ // Result is the base of our error handling language for try.Out functions.
15
15
Result struct {
16
+ // Err holds the error value returned from try.Out function result.
16
17
Err error
17
18
}
18
19
19
20
// Result1 is the base of our error handling DSL for try.Out1 functions.
20
21
Result1 [T any ] struct {
22
+ // Val1 holds the first value returned from try.Out1 function result.
21
23
Val1 T
22
24
Result
23
25
}
24
26
25
27
// Result2 is the base of our error handling DSL for try.Out2 functions.
26
28
Result2 [T any , U any ] struct {
29
+ // Val2 holds the first value returned from try.Out2 function result.
27
30
Val2 U
28
31
Result1 [T ]
29
32
}
You can’t perform that action at this time.
0 commit comments