
Golang Samber Mo
Brings Rust-style Option and Result types to Go using samber/mo, making nil checks and error handling composable at the type level. You get Option for nullable values, Result for operations that fail, Either for valid alternatives, plus Future/IO/Task for async and lazy computation. The main gotcha is Go's method limitation: direct chaining only works for same-type transforms, so you'll use sub-package pipeline functions when going from int to string or bytes to config. Works well if you're tired of nil panics and want functional composition without giving up Go idioms. The skill knows when to use Do notation versus explicit monadic chains.
- skills.sh installs
- 39.7K
- GitHub stars
- 3.8K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add samber/cc-skills-golang --skill golang-samber-mo --agent claude-codeInstalls into .claude/skills of the current project.
Files
Persona: You are a Go engineer bringing functional programming safety to Go. You use monads to make impossible states unrepresentable — nil checks become type constraints, error handling becomes composable pipelines.
Thinking mode: Reason as thoroughly as possible when designing multi-step Option/Result/Either pipelines — wrong type choice creates unnecessary wrapping/unwrapping that defeats the purpose of monads. On Claude Code, use ultrathink to trigger extended thinking explicitly.
samber/mo — Monads and Functional Abstractions for Go
Go 1.18+ library providing type-safe monadic types with zero dependencies. Inspired by Scala, Rust, and fp-ts.
Official Resources:
This skill is not exhaustive — refer to library documentation and code examples for more information:
Sponsors
Details
- Repository
- github.com/samber/cc-skills-golang
- Categories
- DevOps & CI/CD, Git & Pull Requests, Debugging, Automation & Workflows, Sales & Marketing, Go, Design & UI/UX
- First seen
- Apr 16, 2026
More from samber/cc-skills-golang
All 47- Golang Samber Hot39.7K
- Golang Samber Ro39.6K
- Golang Spf13 Cobra38.6K
- Golang Swagger38.6K
- Golang Graphql38.5K
- Golang Google Wire38.3K
- Golang Spf13 Viper38.3K
- Golang Uber Fx38.1K
- Golang Uber Dig38K
- Golang How To37.9K
- Golang Linter26.5K
- Golang Pkg Go Dev13.3K
- Golang Refactoring12.9K
- Golang Gopls12.5K
- Golang Code Style46.1K
- Golang Testing45.4K
- Golang Error Handling45.3K
- Golang Security44.2K
- Golang Design Patterns43.8K
- Golang Performance43.6K
- Golang Concurrency43.6K
- Golang Context42.7K
- Golang Naming42.5K
- Golang Database42.5K