Skip to content

Commit ee7a100

Browse files
committed
cm: add Result method to resulter interface
1 parent b90797c commit ee7a100

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cm/result_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ type resulter[OK, Err any] interface {
1717
IsErr() bool
1818
OK() *OK
1919
Err() *Err
20+
Result() (OK, Err, bool)
2021
}
2122

2223
func TestResultOKOrErr(t *testing.T) {

0 commit comments

Comments
 (0)