MCPcopy
hub / github.com/sqlc-dev/sqlc / LowerTitle

Function LowerTitle

internal/codegen/sdk/utils.go:8–16  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

6)
7
8func LowerTitle(s string) string {
9 if s == "" {
10 return s
11 }
12
13 a := []rune(s)
14 a[0] = unicode.ToLower(a[0])
15 return string(a)
16}
17
18func Title(s string) string {
19 return strings.Title(s)

Callers 2

buildQueriesFunction · 0.92
TestLowerTitleFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestLowerTitleFunction · 0.68