mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
* Use vendor code for all go calls * Add missing vendor dependencies * Add travis_retry to yarn install * Fix go test call
11 lines
195 B
Go
11 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
|
|
}
|