Skip to content

Commit 82b50aa

Browse files
committed
remove toLower template func
1 parent 121241f commit 82b50aa

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

internal/codegen/golang/gen.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ func generate(req *plugin.CodeGenRequest, enums []Enum, structs []Struct, querie
160160
"escape": sdk.EscapeBacktick,
161161
"imports": i.Imports,
162162
"hasPrefix": strings.HasPrefix,
163-
"toLower": strings.ToLower,
164163
"pluralize": pluralize.NewClient().Plural,
165164

166165
// These methods are Go specific, they do not belong in the codegen package

internal/codegen/golang/templates/template.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func All{{ .Name }}Values() []{{ .Name }} {
156156

157157
{{if and (gt (len .Enums) 0) (eq $.SQLDriver.Package "pgx/v5") }}
158158
var EnumNames = []string{
159-
{{range .Enums}}{{toLower .TypeName | printf "%q"}},{{end}}
159+
{{range .Enums}}{{printf "%q" .TypeName}},{{end}}
160160
}
161161
{{end}}
162162

0 commit comments

Comments
 (0)