Basic error made easier to maintain for your app
For samples: sample.
- Error
- Validator
- Set mandatory error codes (recommended for http status code)
- Set custom messages
- Retryable
- Unified validation messages
go get -u github.com/cymon1997/go-errorsSee examples directory for more featured use cases.
Checkout from latest main branch
git checkout main
git pull origin main
git checkout -b <your_branch>Hint: please take a look at Branch Convention
If you add other dependencies, run:
make update-dep Before raise a Pull Request, please make sure you already suffice the tests of your code.
make testFormat:
[prefix]_[feature_name]
Prefix:
f_for new feature implementationi_for adding code improvementb_for fixing bug
Examples:
- f_grpc_client
- i_setup_http_transport
- b_fix_intermittent_http
Please raise an issue and explains the issue / feature that you want to be supported. Give detail explanation about the issue / feature.
If you have anything to ask / discuss, please contact me below, thanks!
Aji Imawan Omi
GitHub: cymon1997
GNU GENERAL PUBLIC LICENSE - Aji Imawan Omi