lainio / err2 Goto Github PK
View Code? Open in Web Editor NEWAutomatic and modern error handling package for Go
License: MIT License
Automatic and modern error handling package for Go
License: MIT License
I get no stack traces as "invalid memory address or nil pointer dereference" is a valid error
and gets wrapped by err2.Returnf
, loosing stack trace and making this bug impossible to debug. Is that expected?
Hello Lainio,
Thanks so much for putting this library together! We've been using it for several months now in our project. It has made error handling much better :)
I see there is a new method "Handle" which automatically annotates the error with the method's name. This is really helpful! One thing I noticed was that it decamels the method name. It would be nice to preserve the original so that it can be easily searched for without having to reassemble it. In terms of readability it still suffers anyway because it ends up keeping the pointer notation, ie "(*my struct) my method: some error message".
err2/internal/handler/handler.go
Line 241 in 92c5df1
Thoughts?
I have some general questions about how to use err2
and I don't want to junk up your issues with Go newbie questions. Perhaps you could enable GitHub Discussions or else add a "Getting Help" or "Community" section to the README.md
where you could link to your preferred Q&A forum.
err2
, i.e. executed first during function returnA declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.