Skip to content
Error handling for Golang
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitignore
.travis.yml
LICENSE
README.md
errs.go
errs_test.go
go.mod
go.sum
wrapper.go

README.md

errs -- Error handling for Golang

Build Status GitHub license GitHub release

Usage

err := errs.Wrap(os.ErrInvalid, "wrapped message")
fmt.Println(err)
fmt.Printf("errs.Cause(err): %v\n", errs.Cause(err))
// Output:
// wrapped message: invalid argument
// errs.Cause(err): invalid argument
You can’t perform that action at this time.