diff --git a/templating.go b/templating.go index 9dcc0e4..ed9f3d4 100644 --- a/templating.go +++ b/templating.go @@ -58,7 +58,7 @@ func SanitizeProtoFieldName(name string) string { name = "u" + name } if strings.HasSuffix(name, "_") { - name = name + "u" + name = strings.TrimSuffix(name, "_") } return name }