Registry / utility / samber-mo

samber-mo

JSON →
library1.13.0gogounverified

Monad and functional programming utilities for Go, including Option, Result, and Either types.

go get github.com/samber/mo
INSTALL
IMPORT
SIG · SAMBER-MO
S
samber-mo
utilitygov1.13.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mo
github.com/samber/mo

Creates an Option monad and matches on its value.

package main import ( "fmt" "github.com/samber/mo" ) func main() { opt := mo.Some(42) opt.Match( func(v int) { fmt.Println(v) }, func() { fmt.Println("none") }, ) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.13.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
samber-mo — go get samber-mo · libregistry