Skip to content

cymon1997/go-errors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-errors

Basic error made easier to maintain for your app

For samples: sample.

Current Support

  • Error
  • Validator

Error

  • Set mandatory error codes (recommended for http status code)
  • Set custom messages
  • Retryable

Validator

  • Unified validation messages

Installation

go get -u github.com/cymon1997/go-errors

Sample

See examples directory for more featured use cases.

Contribute

Development

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 test

Branch Convention

Format:

[prefix]_[feature_name]

Prefix:

  • f_ for new feature implementation
  • i_ for adding code improvement
  • b_ for fixing bug

Examples:

  • f_grpc_client
  • i_setup_http_transport
  • b_fix_intermittent_http

Issue / Feature Request

Please raise an issue and explains the issue / feature that you want to be supported. Give detail explanation about the issue / feature.

Contact

If you have anything to ask / discuss, please contact me below, thanks!
Aji Imawan Omi
GitHub: cymon1997

License

GNU GENERAL PUBLIC LICENSE - Aji Imawan Omi

About

Easy to maintain error package for your app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published