将fmt.Errorf输出为调用栈的字符串
go get -u github.com/kevin2027/merrors
import (
"github.com/kevin2027/merrors"
)
err:=MyFunction(arg1, arg2)
fmt.Printf("%s\n", merrors.String(err))
new error: error call
/Users/dz0401008/projects/merrors/merrors_test.go:func1:14: new error: error call
/Users/dz0401008/projects/merrors/merrors_test.go:TestString:21: error call