MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / firstLetterToLower

Function firstLetterToLower

pkg/sql2code/parser/nameFormat.go:71–81  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

69}
70
71func firstLetterToLower(str string) string {
72 if len(str) == 0 {
73 return str
74 }
75
76 if (str[0] >= 'A' && str[0] <= 'Z') || (str[0] >= 'a' && str[0] <= 'z') {
77 return strings.ToLower(str[:1]) + str[1:]
78 }
79
80 return str
81}
82
83func customToCamel(str string) string {
84 str = toCamel(str)

Callers 3

customFirstLetterToLowerFunction · 0.70
customToCamelFunction · 0.70
makeCodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…