We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f97702 commit 73267f4Copy full SHA for 73267f4
error.go
@@ -3,6 +3,8 @@ package optional
3
import "errors"
4
5
var (
6
+ // ErrNilFunction indicates the supplier function is nil.
7
ErrNilFunction = errors.New("nil function")
8
+ // ErrNoSuchValue indicates the Optional does not contain any value.
9
ErrNoSuchValue = errors.New("no such value")
10
)
0 commit comments