(name string, v any)
| 694 | } |
| 695 | |
| 696 | func (e *optErrors) Required(name string, v any) { |
| 697 | if v == nil { |
| 698 | *e = append(*e, xerrors.Errorf("%s is required, got <nil>", name)) |
| 699 | } |
| 700 | } |
| 701 | |
| 702 | func (e *optErrors) NotEmpty(name string, v any) { |
| 703 | if reflect.ValueOf(v).IsZero() { |