On Jan 12, 2014 1:54 PM, "AKU" <kueh...@gmail.com> wrote:
> You are right. In fact, the struct fields ARE different depending on the FormField type.
> I will try using an init() method which I can implement specifically for each FormField type.
another way is to extract these common fileds out into another "common" struct, implement the required Set method for it and then embed the common struct into every FormField struct so that you only need to write the Set method once.
--
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...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.