Ecosyste.ms: Packages

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

proxy.golang.org : github.com/widetape/result

Package result provides Result implementation. A result can be present in two conditions: real and fake. A real result contains a value and no error, and can be safely unwrapped via (*Result).Value() method to retrieve the actual value. A fake result contains an error and no value (or a "nil" value) and cannot be unwrapped (unwrapping will lead to a runtime panic). There is only one way to distinguish a fake result from a real one: check for an error present in the result via calling (*Result).Error(), and if the method returns a non-nil error, then the result is a fake and must not be treated as a real value.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/widetape/result
Keywords: error-handling, go, golang, maintainability
License: MIT
Latest release: 8 months ago
First release: 8 months ago
Namespace: github.com/widetape
Stars: 2 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 26 days ago

    Loading...
    Readme
    Loading...