This is tangential, but if we're talking about style, you might be able to simplify this line ret = PropertiesList(ret).Append(PropertiesList(temp)) to be ret = PropertiesList(ret).Append(temp) if the PropertiesList underlying type and the temp variable's type are what I'm guessing they are: []*Properties. The relevant sections of the spec are https://golang.org/ref/spec#Calls and the link to "assignable".
In a similar fashion, you could probably further simplify to: ret = ret.Append(temp) if you replaced ret := []*Properties{} with either ret := PropertiesList(nil) or var ret PropertiesList -- 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.