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] = f } return m }