On Tue, Oct 29, 2019 at 10:54 AM <julio.neme...@gmail.com> wrote:
>
> I am wondering if it is possible to get the address of a function but at 
> link-time. Kind of the equivalent to the C keyword `extern`.
>
> Maybe using the link name directive? But it is not super clear to me.
>
> I would like to get them instead at link time instead of using the gosymtab.

That's not what the C keyword "extern" does, so I'm not sure quite
what you mean.

What do you want to do with the address?

You can get *an* address of the function f by writing
reflect.Value(f).Pointer(), but I don't know if that is the address
that you want.

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/CAOyqgcXuBvKpn7Xx0mR6d8%2BEOgNLkasjMUKNU%3DY%2BukdTX5%2BBJA%40mail.gmail.com.

Reply via email to