Thanks!

El martes, 7 de febrero de 2017, 22:55:06 (UTC-3), [email protected] 
escribió:
>
> Hello,
>
> I am having several structures with the same interface and I need to 
> declare them based on an sql value. On some languages it is possible to do 
> something like:
>
> variable struct_name="MyStruct"
> object:= new struct_name{}
>
> I was wondering if its possible to do something similar in Go? Otherwise 
> I'm having a switch with a case for each different class and its not a very 
> elegant solution.
>
> Thanks.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to