MCPcopy Index your code
hub / github.com/pocketbase/pocketbase / FieldName

Method FieldName

plugins/jsvm/mapper.go:23–25  ·  view source on GitHub ↗

FieldName implements the [FieldNameMapper.FieldName] interface method.

(_ reflect.Type, f reflect.StructField)

Source from the content-addressed store, hash-verified

21
22// FieldName implements the [FieldNameMapper.FieldName] interface method.
23func (u FieldMapper) FieldName(_ reflect.Type, f reflect.StructField) string {
24 return convertGoToJSName(f.Name)
25}
26
27// MethodName implements the [FieldNameMapper.MethodName] interface method.
28func (u FieldMapper) MethodName(_ reflect.Type, m reflect.Method) string {

Callers 2

TestFieldMapperFunction · 0.95
mainFunction · 0.80

Calls 1

convertGoToJSNameFunction · 0.85

Tested by 1

TestFieldMapperFunction · 0.76