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.


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 

Reply via email to