my: Use runtime.CallersFrames instead of runtime.FuncForPC
Because in general case runtime.CallersFrames is more accurate than runtime.FuncForPC - e.g. the latter does not correctly work with inlined functions.
Showing
Please register or sign in to comment