golang-samber-mo
Monadic types for Golang using samber/mo — Option, Result, Either, Future, IO, Task, and State types for type-safe nullable values, error handling, and functional composition with pipeline sub-packages. Apply when using or adopting samber/mo, when the codebase imports github.com/samber/mo, or when considering functional programming patterns as a safety design for Golang. Not for nil-safety and zero-value design…
- installs 8w
- 3,753
- 30-day movement
- starts with the next reading
- Related entries
- 1
- Connections
- 0
An agent skill (SKILL.md) that guides coding agents in using the samber/mo library for Go, covering Option, Result, Either, Future, IO, Task, and State types. It includes a workflow, rules, and bundled reference documents on option/result/either types, monads, pipelines, and advanced types.
Use it when your codebase imports github.com/samber/mo or you want the agent to apply monadic nullable-value and error-handling patterns correctly in Go.
Use it to
- Adopt samber/mo in an existing Go codebase
- Replace nil checks with Option[T] for nullable values
- Model errors as Result[T] values instead of returning raw errors
- Compose operations via pipeline sub-packages or direct chaining
- Use mo.Do notation to catch MustGet panics safely
For Go developers using or adopting samber/mo with AI coding agents
- Host repository
- samber/cc-skills-golang
- Version
- 1.1.2
- Installs, lifetime
- 36k
- Installs, 8 weeks
- 3,753
- Compatible with
- Designed for Claude Code, Codex or similar harness, and for projects using Golang.
- Licence
- MIT
- Invocable by
- user
- Host stars
- 3,273
- Host language
- Go