Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
runtime.Caller return frame of bad function #39342
What version of Go are you using (
@davecheney Yes, I understand about it is inline side effect.
Test out print strings:
I surprised because runtime.Caller and runtime.Callers have different result for same situation.
Internal Caller(2) and Callers(3) run intenal
If the difference is expected - I think need write it in documentations and write in documentation about what of function have more precision.
You should use
I'm going to close, as this isn't a bug. If you have concrete suggestions for improving the documentation, please reopen and include those suggestions (or send a CL).