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