2020. február 8., szombat 20:42:32 UTC+1 időpontban Alexander Mills a 
következőt írta:
>
> it looks like this way works:
>
> https://stackoverflow.com/a/43918797/12211419
>
> know of any others?
>

Yup, that's one - get the address of the field and get that.

Another is to declare a similar (memory and type-wise) structure with 
exported fields, 
and unsafe-type-cast it: https://play.golang.org/p/z0QG-CP_MSL

-- 
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/836756d6-0654-4341-8a2e-af57ff07a231%40googlegroups.com.

Reply via email to