MCPcopy
hub / github.com/ent/ent / pascal

Function pascal

entc/gen/func.go:183–186  ·  view source on GitHub ↗

pascal converts the given name into a PascalCase. user_info => UserInfo full_name => FullName user_id => UserID full-admin => FullAdmin

(s string)

Source from the content-addressed store, hash-verified

181// user_id => UserID
182// full-admin => FullAdmin
183func pascal(s string) string {
184 words := strings.FieldsFunc(s, isSeparator)
185 return pascalWords(words)
186}
187
188// camel converts the given name into a camelCase.
189//

Callers 15

ClientNameMethod · 0.85
QueryNameMethod · 0.85
FilterNameMethod · 0.85
CreateNameMethod · 0.85
CreateBulkNameMethod · 0.85
UpdateNameMethod · 0.85
UpdateOneNameMethod · 0.85
DeleteNameMethod · 0.85
DeleteOneNameMethod · 0.85
MutationNameMethod · 0.85
TypeNameMethod · 0.85
checkFieldMethod · 0.85

Calls 1

pascalWordsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…