GithubHelp home page GithubHelp logo

lainio / err2 Goto Github PK

View Code? Open in Web Editor NEW
52.0 2.0 6.0 810 KB

Automatic and modern error handling package for Go

License: MIT License

Makefile 1.37% Go 87.98% Shell 10.62% Awk 0.03%
assertion-library error error-handling errors go golang stacktrace try-catch unit-testing

err2's Issues

Handle decamels the function name

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".

info.Format = str.Decamel(funcName)

Thoughts?

Enable GitHub Discussions.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.