Hi, I somehow ended up with an interface{} value being a **SomeStruct{}
... and I need to dereference it to an interface{} holding *SomeStruct{} in a generic way (ie. without knowing about the type SomeStruct) I'm not at all sure this is good idea or the right way for the specific code, but out of curiosity, - can this be done in a non-unsafe way? One would think the result is rather well defined. In other words, var x int = 7 xp := &x xpp := &xp var i1 interface{} = xpp var i2 interface{} i2 := SomeMagicNotSpecificToInt(i1) yp := i2.(*int) y := *yp // y now == 7 /Peter -- 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. For more options, visit https://groups.google.com/d/optout.