Convenient error handling
To install errorhole, use go get
:
go get github.com/Toolnado/errorhole
Here's a basic example of how to use errorhole:
func main() {
defer errorhole.Catch() // Waiting for an error
// do something...
errorhole.Nil(err) // Check error
}
Contributions are welcome! Please fork the repository and submit a pull request with your changes. Be sure to follow the project's coding guidelines and include tests for any new features or bug fixes.
This project is licensed under the MIT License - see the LICENSE file for details.