MCPcopy Create free account
hub / github.com/pace/bricks / generateMethodName

Function generateMethodName

http/jsonapi/generator/generate_handler.go:860–866  ·  view source on GitHub ↗
(description string)

Source from the content-addressed store, hash-verified

858}
859
860func generateMethodName(description string) string {
861 parts := strings.Split(asciiName.ReplaceAllString(description, " "), " ")
862 for i := 0; i < len(parts); i++ {
863 parts[i] = goNameHelper(parts[i])
864 }
865 return goNameHelper(strings.Join(parts, ""))
866}
867
868func generateParamName(param *openapi3.ParameterRef) string {
869 return "Param" + generateMethodName(param.Value.Name)

Callers 3

generateJSONAPIMetaMethod · 0.85
generateParamNameFunction · 0.85

Calls 1

goNameHelperFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…