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

github.com/mitranim/try

Shorter error handling in Go. Supports two styles: * Like the rejected "try" proposal (https://golang.org/design/32437-try-builtin). * Exception-based. Uses a combination of `defer` and panics to make code SIGNIFICANTLY shorter, at an acceptable runtime cost. Automatically ensures stacktraces via "github.com/pkg/errors". You can choose to keep `error` in signatures and use explicit "try", or drop `error` from signatures and use exceptions. See `readme.md` and examples.

Ecosystem
proxy.golang.org
Latest Release
v0.1.5
over 4 years ago
Versions
6
Dependent Repos
1
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/mitranim/try
spec
License Unlicense
Namespace github.com/mitranim
First Release about 5 years ago
Last Synced 13 days ago
Repository
Stars 4 on GitHub
Forks 1 on GitHub
Rankings on proxy.golang.org
Dependent repos Top 4.7%