https://github.com/rawleyfowler/result
Result monad from OCaml implemented in Go
https://github.com/rawleyfowler/result
Last synced: about 1 year ago
JSON representation
Result monad from OCaml implemented in Go
- Host: GitHub
- URL: https://github.com/rawleyfowler/result
- Owner: rawleyfowler
- License: mit
- Created: 2022-11-13T14:35:46.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-21T02:38:56.000Z (over 3 years ago)
- Last Synced: 2025-02-13T08:54:21.213Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# result
Simple implementation of the `Result` monad from OCaml. Mostly used as an introduction to Go generics.
## How to use
Create a new result with `result.Error[T, G]` or `result.Ok[T, G]`.
Then you can use a variety of methods to `Unwrap` or `Map` or `Bind` the
result.
## License
This library is available under the MIT license. View the `LICENSE` file at
the root of the directory for more information.