From 1614b58c420f7875f92a5469c77fd7aeccc7a106 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Tue, 29 Mar 2016 16:23:18 -0400 Subject: fix structs with field name of 'Bytes' (it conflict with a method of the same name that is generated for all such structs) --- nexgb/xgbgen/field.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nexgb/xgbgen') diff --git a/nexgb/xgbgen/field.go b/nexgb/xgbgen/field.go index bf3b3be..2522a06 100644 --- a/nexgb/xgbgen/field.go +++ b/nexgb/xgbgen/field.go @@ -87,6 +87,9 @@ func (f *SingleField) Initialize(p *Protocol) { } func (f *SingleField) SrcName() string { + if f.srcName == "Bytes" { + return "Bytes_" + } return f.srcName } -- cgit v1.2.3-70-g09d2