26b5343e
6949d6c5
1 2
3 4
5 6
7
8 9 10 11
package codegen func (o *Object) UniqueFields() map[string][]*Field { m := map[string][]*Field{} for _, f := range o.Fields { m[f.GoFieldName] = append(m[f.GoFieldName], f) } return m }