Use vendor when building (#201)

* Use vendor code for all go calls

* Add missing vendor dependencies

* Add travis_retry to yarn install

* Fix go test call
This commit is contained in:
WithoutPants
2019-11-17 03:03:28 +11:00
committed by StashAppDev
parent 3e13103264
commit 6a75d5551f
89 changed files with 11022 additions and 14 deletions

View File

@@ -0,0 +1,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
}