Code Review
/
govpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fix binapigen decoding and minor improvements
[govpp.git]
/
binapigen
/
types.go
diff --git
a/binapigen/types.go
b/binapigen/types.go
index
0a21622
..
1d0dae5
100644
(file)
--- a/
binapigen/types.go
+++ b/
binapigen/types.go
@@
-87,8
+87,10
@@
func fieldActualType(field *Field) (actual string) {
actual = field.TypeAlias.Type
case field.TypeEnum != nil:
actual = field.TypeEnum.Type
+ default:
+ actual = field.Type
}
- return
field.Type
+ return
}
func fieldGoType(g *GenFile, field *Field) string {