Codebase list golang-github-go-playground-validator-v10 / ea09db9
aha! there's the extra allocation(s) Ive been chasing down! joeybloggs 7 years ago
1 changed file(s) with 7 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
104104 // message
105105 Value() interface{}
106106
107 // returns the param value, already converted into the fields type for
108 // comparison; this will also help with generating an error message
109 Param() interface{}
107 // returns the param value, in string form for comparison; this will also
108 // help with generating an error message
109 Param() string
110110
111111 // Kind returns the Field's reflect Kind
112112 //
134134 field string
135135 structField string
136136 value interface{}
137 param interface{}
137 param string
138138 kind reflect.Kind
139139 typ reflect.Type
140140 }
179179 return fe.value
180180 }
181181
182 // Param returns the param value, already converted into the fields type for
183 // comparison; this will also help with generating an error message
184 func (fe *fieldError) Param() interface{} {
182 // Param returns the param value, in string form for comparison; this will
183 // also help with generating an error message
184 func (fe *fieldError) Param() string {
185185 return fe.param
186186 }
187187