go get -t github.com/dacalin/custom_error
myErr := cerror.New("MyDbError", "This is my custom error")
err:= anerror()
if err != nil {
myErr = myErr.AddOrigError(err).AddExtraMsg("Error when trying this.")
}
fmt.Println(myErr)
if myErr.Code() == other.Code() {
}