*fakeObject := tt.Object.(TypeOfStruct)object :=
Object.(TypeOfStruct)fakeObject.Field = object.FieldfakeObject.Field2 =
object.Field2*
I have case like that.
I want to assign sme object values to tt.Object but when i try to assign it
assings to fakeObject i mean copy of tt.Object so I cant assign
I tried these assigns
*tt.Object.(TypeOfStruct).Field =
object.Fieldtt.Object.(TypeOfStruct).Field2 = object.Field2*
or
*tt.Object:= tt.Object.(TypeOfStruct)tt.Object.Field =
object.Fieldtt.Object.Field2 = object.Field2*
But both of them didnt work
How should i achieve it?
btw tt.Object and Object are interface{} of course
--
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/d1539b71-8344-4199-bb7c-ef95b3cf2badn%40googlegroups.com.