From 948af64ea2b6e586f4d152fcfc7ed168dae4c919 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 9 Jan 2025 17:15:53 -0600 Subject: example doesn't seem to work. why? notsure Signed-off-by: Jeff Carr --- protoParse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protoParse.go') diff --git a/protoParse.go b/protoParse.go index 024125d..6403346 100644 --- a/protoParse.go +++ b/protoParse.go @@ -97,7 +97,7 @@ func (pb *Files) protoParse(f *File) error { parts := strings.Fields(line) if strings.Contains(line, "autogenpb:sort") { - newS := parts[1] + newS := cases.Title(language.English, cases.NoLower).String(parts[1]) log.Info("Addded Sort:", newS, "in struct", curmsg.Name) curmsg.Sort = append(curmsg.Sort, newS) } -- cgit v1.2.3