Currently the caller level of T's decorate function is fixed _, file, line, ok := runtime.Caller(3) // decorate + log + public function. When wrapping common assertions in a code block, it would be useful to be able to modify the caller level for correct log output.
This seems really noisy to me as a default.
Caleb’s proposal handles this case, and the proposal doc discusses it explicitly. Perhaps something in the doc needs clarifying or expanding.
Aha! Looks like this hasn’t been reviewed by @golang/proposal-review because it was on hold waiting for @cespare to mail a doc. Doc done been mailed; un-holding.