fix structs with field name of 'Bytes'
(it conflict with a method of the same name that is generated for all such structs)
This commit is contained in:
@@ -87,6 +87,9 @@ func (f *SingleField) Initialize(p *Protocol) {
|
||||
}
|
||||
|
||||
func (f *SingleField) SrcName() string {
|
||||
if f.srcName == "Bytes" {
|
||||
return "Bytes_"
|
||||
}
|
||||
return f.srcName
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user