According to errors pkg documentation to retrieve the stack trace of an error or wrapper I should try to use interface:
type stackTracer interface { StackTrace() errors.StackTrace }
The stackTracer interface is private. Does it mean, that you don't want it to be an API for errrors library and it can change its behaviour?
According to errors pkg documentation to retrieve the stack trace of an error or wrapper I should try to use interface:
type stackTracer interface { StackTrace() errors.StackTrace }The stackTracer interface is private. Does it mean, that you don't want it to be an API for errrors library and it can change its behaviour?