golang-samber-mo
CommunityMonads and FP patterns for Go
Authorsamber
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Monadic patterns in Go provide explicit handling for absence, errors, and multiple outcomes, reducing boilerplate and improving type safety.
Core Features & Use Cases
- Option for nullable data with explicit presence/absence, enabling safer JSON and DB modeling.
- Result and Either abstractions to model errors and alternative data flows, with Do notation and pattern matching.
- Pipeline sub-packages (option, result, either) for type-changing transformations, enabling readable multi-step pipelines.
- Interoperability with standard library calls via TupleToResult, Try, Map, and FlatMap.
Quick Start
Convert a Go function’s (value, error) result with TupleToResult and then apply a simple Map transformation to demonstrate chainable error handling.
Dependency Matrix
Required Modules
None requiredComponents
references
đź’» Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: golang-samber-mo Download link: https://github.com/samber/cc-skills-golang/archive/main.zip#golang-samber-mo Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.