Valuer is an interface that allows you to expose a method on a type (including generic types) that returns a value that is supposed to be validated.
| 12 | // Valuer is an interface that allows you to expose a method on a type |
| 13 | // (including generic types) that returns a value that is supposed to be validated. |
| 14 | type Valuer interface { |
| 15 | // ValidatorValue returns the value that is supposed to be validated. |
| 16 | ValidatorValue() any |
| 17 | } |
| 18 | |
| 19 | // extractTypeInternal gets the actual underlying type of field value. |
| 20 | // It will dive into pointers, customTypes and return you the |
no outgoing calls
no test coverage detected
searching dependent graphs…