|
|
@ -105,9 +105,9 @@ type FieldError interface { |
|
|
|
// message
|
|
|
|
// message
|
|
|
|
Value() interface{} |
|
|
|
Value() interface{} |
|
|
|
|
|
|
|
|
|
|
|
// returns the param value, already converted into the fields type for
|
|
|
|
// returns the param value, in string form for comparison; this will also
|
|
|
|
// comparison; this will also help with generating an error message
|
|
|
|
// help with generating an error message
|
|
|
|
Param() interface{} |
|
|
|
Param() string |
|
|
|
|
|
|
|
|
|
|
|
// Kind returns the Field's reflect Kind
|
|
|
|
// Kind returns the Field's reflect Kind
|
|
|
|
//
|
|
|
|
//
|
|
|
@ -135,7 +135,7 @@ type fieldError struct { |
|
|
|
field string |
|
|
|
field string |
|
|
|
structField string |
|
|
|
structField string |
|
|
|
value interface{} |
|
|
|
value interface{} |
|
|
|
param interface{} |
|
|
|
param string |
|
|
|
kind reflect.Kind |
|
|
|
kind reflect.Kind |
|
|
|
typ reflect.Type |
|
|
|
typ reflect.Type |
|
|
|
} |
|
|
|
} |
|
|
@ -180,9 +180,9 @@ func (fe *fieldError) Value() interface{} { |
|
|
|
return fe.value |
|
|
|
return fe.value |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Param returns the param value, already converted into the fields type for
|
|
|
|
// Param returns the param value, in string form for comparison; this will
|
|
|
|
// comparison; this will also help with generating an error message
|
|
|
|
// also help with generating an error message
|
|
|
|
func (fe *fieldError) Param() interface{} { |
|
|
|
func (fe *fieldError) Param() string { |
|
|
|
return fe.param |
|
|
|
return fe.param |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|