//
pkg.gl
Category
github.com/ava-labs/avalanchego
utils
maybe
package
1.12.3-warp-verify6
Repository:
https://github.com/ava-labs/avalanchego.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
1
Dependents
8
Files
46 SLOC
#
Functions
Bind
Bind returns Nothing iff [m] is Nothing.
Equal
Equal returns true if both m1 and m2 are nothing or have the same value according to [equalFunc].
Nothing
Nothing returns a new Maybe[T] with no value.
Some
Some returns a new Maybe[T] with the value val.
#
Structs
Maybe
Maybe T = Some T | Nothing.