Support imported type aliases
[govpp.git] / cmd / binapi-generator / objects.go
index c4b645d..9871abc 100644 (file)
@@ -14,6 +14,11 @@ type Package struct {
        Unions   []Union
        Messages []Message
        RefMap   map[string]string
+       Imports  map[string]Import
+}
+
+type Import struct {
+       Package string
 }
 
 // Service represents VPP binary API service
@@ -65,7 +70,7 @@ type Field struct {
 // FieldMeta represents VPP binary API meta info for field
 type FieldMeta struct {
        Limit   int
-       Default float64
+       Default string
 }
 
 // Union represents VPP binary API union