On Tuesday, 14 January 2020 21:58:01 UTC, Ian Lance Taylor wrote: 

> In general this is not possible in Go.  Sorry. 
>
> If you can restrict yourself to exported package-scope variables, then 
> you can probably use the debug/pe (on Windows) package to look up the 
> symbol name and use that value as the variable's address. 
>
> Or in some cases you can keep a registry of names that you need to find. 
>

OK, thanks for the response.

Regards,

Vinay Sajip

-- 
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/d9ec7956-91df-40c5-85c7-08ff191df2ae%40googlegroups.com.

Reply via email to