Open
Description
Proposal Details
This proposal is for a function with a signature like func CallerString(skip int) string
.
It returns basic info about the caller in some fixed format.
Since it only returns info about a single frame and only reports it as simple data, when skip
is a reasonable constant, it could be replaced at compile time as an optimization. Otherwise, it can be implemented in terms of Callers
.
Either way, it would simplify common logging/monitoring/error annotating uses that just need a tiny bit of context about a single caller for reporting to a developer.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Incoming