Check out https://github.com/pkg/errors
Re:My Go Resolutions for 2017
by bmurphy1976 on Wednesday January 18, 2017 @09:40PM
(#13432509)
Great library.
or gopkg.in/errgo.v1 which is a bit more opinionated about error causes.
I would love for Go to include something like this: