X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=binapigen%2Fbinapigen.go;h=35a07d0e8ebb875c48b1e125da78c57406c12f60;hb=15c53e7a9da6f61448b77339b5b762ada0050aff;hp=2dbd661e75c64be590b03b839330c7accc47b23c;hpb=a4e8bf2efe9189ce795f87ab07adbb3780d01d7d;p=govpp.git diff --git a/binapigen/binapigen.go b/binapigen/binapigen.go index 2dbd661..35a07d0 100644 --- a/binapigen/binapigen.go +++ b/binapigen/binapigen.go @@ -271,7 +271,7 @@ func newUnion(gen *Generator, file *File, apitype vppapi.UnionType) *Union { typ := &Union{ UnionType: apitype, GoIdent: GoIdent{ - GoName: camelCaseName(apitype.Name), + GoName: withSuffix(camelCaseName(apitype.Name), "Union"), GoImportPath: file.GoImportPath, }, }