Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

b-pagis/go-public-errors-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Public Errors Example

Idea on how public errors should be handled. Main advantages for such or similar implementation:

  • Ensures stable contracts
  • Ensures public error codes visibility
  • Enables handling errors by behaviors, rather by values or types

About

Example how to handle public errors in go while keeping the contracts unchanged.

Topics

Resources

License

Stars

Watchers

Forks