mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-16 02:33:26 +03:00
12 lines
195 B
Go
12 lines
195 B
Go
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
|
|
}
|