MCPcopy
hub / github.com/pocketbase/pocketbase / MethodName

Method MethodName

plugins/jsvm/mapper.go:28–30  ·  view source on GitHub ↗

MethodName implements the [FieldNameMapper.MethodName] interface method.

(_ reflect.Type, m reflect.Method)

Source from the content-addressed store, hash-verified

26
27// MethodName implements the [FieldNameMapper.MethodName] interface method.
28func (u FieldMapper) MethodName(_ reflect.Type, m reflect.Method) string {
29 return convertGoToJSName(m.Name)
30}
31
32var nameExceptions = map[string]string{"OAuth2": "oauth2"}
33

Callers 4

hooksBindsFunction · 0.95
TestFieldMapperFunction · 0.95
mainFunction · 0.80
hooksDeclarationsFunction · 0.80

Calls 1

convertGoToJSNameFunction · 0.85

Tested by 1

TestFieldMapperFunction · 0.76