Not sure if it the same issue, but one problem is that 
runtime.CallersFrames returns a *Frames, which means it does an allocation. 
It would be nice to have a call that either returned a Frames by value, or 
one that takes a frame to reset and fill in.

On Tuesday, 27 July 2021 at 16:18:17 UTC-4 Ian Lance Taylor wrote:

> Sorry, I'm not sure exactly what you are asking.
>
> The value returned by runtime.Callers is just a slice, and the value
> returned by runtime.CallersFrames is an ordinary value. It's fine to
> save those values however you like.
>
> Ian
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/19840f32-305b-49ae-bc55-0439c9e305f4n%40googlegroups.com.

Reply via email to