markphelps / optional

Optional is a library of optional Go types
https://godoc.org/github.com/markphelps/optional
MIT License
210 stars 19 forks source link

feat: add `Result<T,E>` #20

Closed alexec closed 3 years ago

alexec commented 3 years ago

This PR primary adds Result<T,E>, also some tidy up.

This is based on:

alexec commented 3 years ago

Hmm. Does not work with os.File (or foo.Bar). That's a big downside.