I stumbled on https://go-review.googlesource.com/c/go/+/393365 which
explains why plugins need to keep unexported methods.

Thanks for taking the time to answer my questions, have a good day !


Le mar. 11 févr. 2025 à 15:52, Ian Lance Taylor <i...@golang.org> a écrit :

> On Tue, Feb 11, 2025 at 1:57 AM Pierre Gimalac
> <pierre.gima...@datadoghq.com> wrote:
> >
> > But in that case why would that only happen for dynamic builds ?
> > Shouldn't all unexported methods also be kept for the "normal" build ?
>
> In a normal build the linker can see all the code in the program, so
> it knows whether something is possible. In a dynamic build it doesn't
> know.
>
> 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 visit 
https://groups.google.com/d/msgid/golang-nuts/CAGAkyj9zFW4z2kENq%2B-5wu5%3D6zS9pEPA%3Dj5qKtvCp4ObQ019jQ%40mail.gmail.com.

Reply via email to