shouldSkipMethod determines if a method should be skipped during binding
(method reflect.Method, opts *ReflectOptions)
| 313 | |
| 314 | // shouldSkipMethod determines if a method should be skipped during binding |
| 315 | func shouldSkipMethod(method reflect.Method, opts *ReflectOptions) bool { |
| 316 | // Check prefix filter |
| 317 | if opts.MethodPrefix != "" && !strings.HasPrefix(method.Name, opts.MethodPrefix) { |
| 318 | return true |
| 319 | } |
| 320 | |
| 321 | // Check ignored list |
| 322 | if slices.Contains(opts.IgnoredMethods, method.Name) { |
| 323 | return true |
| 324 | } |
| 325 | |
| 326 | // Check special methods |
| 327 | return isSpecialMethod(method.Name) |
| 328 | } |
| 329 | |
| 330 | // shouldSkipField determines if a field should be skipped during binding |
| 331 | func shouldSkipField(field reflect.StructField, opts *ReflectOptions) bool { |
no test coverage detected