You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.
I understand the intension is exposing APIs as little as possible to enhance the future API compatibility.
However, if everyone must defines the stackTracer interface to retrieve stack traces, it is actually an implicit interface. I think it is not good.
So how about make the stackTracer interface public and adding StackTracer interface?
The text was updated successfully, but these errors were encountered:
I understand this request but I'm sorry I do not plan to add this interface to this package. I strongly believe that interfaces should be defined by their caller, not the package which implements them.
I read https://godoc.org/github.com/pkg/errors#hdr-Retrieving_the_stack_trace_of_an_error_or_wrapper
and learn you need to the
stackTracer
interface yourself.I understand the intension is exposing APIs as little as possible to enhance the future API compatibility.
However, if everyone must defines the
stackTracer
interface to retrieve stack traces, it is actually an implicit interface. I think it is not good.So how about make the
stackTracer
interface public and addingStackTracer
interface?The text was updated successfully, but these errors were encountered: