diff --git a/cmd/protoc-gen-go-errors/errors.go b/cmd/protoc-gen-go-errors/errors.go index 76222acc9..909690d66 100644 --- a/cmd/protoc-gen-go-errors/errors.go +++ b/cmd/protoc-gen-go-errors/errors.go @@ -94,7 +94,7 @@ func genErrorsReason(gen *protogen.Plugin, file *protogen.File, g *protogen.Gene func Case2Camel(name string) string { if !strings.Contains(name, "_") { - return name + return strings.Title(strings.ToLower(name)) } name = strings.ToLower(name) name = strings.Replace(name, "_", " ", -1)