An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 5.4% on proxy.golang.org

proxy.golang.org : github.com/appthrust/mu

Package mu provides functional programming primitives for Go, including Option, Result, and Either types for safe and expressive error handling and data manipulation. The package offers three main abstractions: Each type comes with a rich set of methods for functional composition, transformation, and safe value extraction. The types implement standard Go interfaces for JSON marshaling, SQL scanning, and string representation. Example usage: This library follows a specific design pattern to work around Go's generics limitations while providing both ergonomic and powerful APIs. ## Method vs Function Distinction Due to Go's language specification, methods cannot have additional type parameters beyond those defined on the receiver type. This means we cannot write: Instead, methods in this library are endomorphisms (same type in, same type out): For type-changing transformations, we provide standalone functions: ## Usage Guidelines Use methods when: Use standalone functions when: Example: For more details on this limitation, see: https://github.com/golang/go/issues/49085

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/appthrust/mu
License: MIT
Latest release: 4 days ago
Namespace: github.com/appthrust
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 4 days ago