@@ -22,10 +22,10 @@ type Message struct {
22
22
Messages []* Message
23
23
// OneOfFieldsGroups is the grouped list of one of fields with same index. so
24
24
// that renderer can render the clearing of other fields on set.
25
- OneOfFieldsGroups map [int32 ][]* Field
25
+ OneOfFieldsGroups map [int ][]* Field
26
26
// OneOfFieldNames is the names of one of fields with same index. so that
27
27
// renderer can render the clearing of other fields on set.
28
- OneOfFieldsNames map [int32 ]string
28
+ OneOfFieldsNames map [int ]string
29
29
}
30
30
31
31
// HasOneOfFields returns true when the message has a one of field.
@@ -57,8 +57,8 @@ func NewMessage() *Message {
57
57
Enums : make ([]* NestedEnum , 0 ),
58
58
Fields : make ([]* Field , 0 ),
59
59
Messages : make ([]* Message , 0 ),
60
- OneOfFieldsGroups : make (map [int32 ][]* Field ),
61
- OneOfFieldsNames : make (map [int32 ]string ),
60
+ OneOfFieldsGroups : make (map [int ][]* Field ),
61
+ OneOfFieldsNames : make (map [int ]string ),
62
62
}
63
63
}
64
64
@@ -97,7 +97,7 @@ type Field struct {
97
97
// Message is the reference back to the parent message
98
98
Message * Message
99
99
// OneOfIndex is the index in the one of fields
100
- OneOfIndex int32
100
+ OneOfIndex int
101
101
// IsRepeated indicates whether the field is a repeated field
102
102
IsRepeated bool
103
103
}
0 commit comments