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

Function customToCamel

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

Source from the content-addressed store, hash-verified

81}
82
83func customToCamel(str string) string {
84 str = toCamel(str)
85
86 if _, ok := peculiarNouns[str]; ok {
87 str = strings.ToLower(str)
88 } else {
89 str = firstLetterToLower(str)
90 }
91
92 return str
93}
94
95func customToSnake(str string) string {
96 str = toCamel(str)

Callers 5

makeCodeFunction · 0.85
getHandlerStructCodesFunction · 0.85
goTypeToProtoFunction · 0.85
TestNameFormatFunction · 0.85

Calls 2

toCamelFunction · 0.85
firstLetterToLowerFunction · 0.70

Tested by 1

TestNameFormatFunction · 0.68