An open API service indexing awesome lists of open source software.

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

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.