From 85ad599cf07fd293d33a162467d148d3a73bc526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Duchesneau?= Date: Wed, 26 Jun 2024 12:53:13 -0400 Subject: [PATCH] fix other api cases with underscore --- templating.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }