From 9a0bd48182256482adad56b3b78e404c8f7c7282 Mon Sep 17 00:00:00 2001 From: Jan Rada <31016933+ZelvaMan@users.noreply.github.com> Date: Mon, 29 Jan 2024 12:57:52 +0100 Subject: [PATCH] fix changeCase --- src/generator.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/generator.go b/src/generator.go index 2dd105f..2dff473 100644 --- a/src/generator.go +++ b/src/generator.go @@ -292,14 +292,14 @@ func generateFileHashes(outputFolder string) (*map[string]string, error) { func changeCase(str string, desiredCase string) string { switch strings.ToLower(desiredCase) { - case "pascalCase": + case "pascalcase": return strcase.UpperCamelCase(str) - case "camelCase": + case "camelcase": return strcase.LowerCamelCase(str) - case "snakeCase": + case "snakecase": return strcase.SnakeCase(str) default: - + common.LogWarn("unknown case, this should never happen") return str } }