@@ -68,7 +68,7 @@ func (v *validate) Field() reflect.Value {
6868}
6969
7070// FieldName returns the field's name with the tag
71- // name takeing precedence over the fields actual name.
71+ // name taking precedence over the fields actual name.
7272func (v * validate ) FieldName () string {
7373 return v .cf .altName
7474}
@@ -87,26 +87,26 @@ func (v *validate) Param() string {
8787//
8888// Deprecated: Use GetStructFieldOK2() instead which also return if the value is nullable.
8989func (v * validate ) GetStructFieldOK () (reflect.Value , reflect.Kind , bool ) {
90- current ,kind ,_ , found := v .getStructFieldOKInternal (v .slflParent , v .ct .param )
91- return current ,kind ,found
90+ current , kind , _ , found := v .getStructFieldOKInternal (v .slflParent , v .ct .param )
91+ return current , kind , found
9292}
9393
9494// GetStructFieldOKAdvanced is the same as GetStructFieldOK except that it accepts the parent struct to start looking for
9595// the field and namespace allowing more extensibility for validators.
9696//
9797// Deprecated: Use GetStructFieldOKAdvanced2() instead which also return if the value is nullable.
9898func (v * validate ) GetStructFieldOKAdvanced (val reflect.Value , namespace string ) (reflect.Value , reflect.Kind , bool ) {
99- current ,kind ,_ , found := v .GetStructFieldOKAdvanced2 (val , namespace )
100- return current ,kind ,found
99+ current , kind , _ , found := v .GetStructFieldOKAdvanced2 (val , namespace )
100+ return current , kind , found
101101}
102102
103103// GetStructFieldOK returns Param returns param for validation against current field
104- func (v * validate ) GetStructFieldOK2 () (reflect.Value , reflect.Kind ,bool , bool ) {
104+ func (v * validate ) GetStructFieldOK2 () (reflect.Value , reflect.Kind , bool , bool ) {
105105 return v .getStructFieldOKInternal (v .slflParent , v .ct .param )
106106}
107107
108108// GetStructFieldOKAdvanced is the same as GetStructFieldOK except that it accepts the parent struct to start looking for
109109// the field and namespace allowing more extensibility for validators.
110- func (v * validate ) GetStructFieldOKAdvanced2 (val reflect.Value , namespace string ) (reflect.Value , reflect.Kind ,bool , bool ) {
110+ func (v * validate ) GetStructFieldOKAdvanced2 (val reflect.Value , namespace string ) (reflect.Value , reflect.Kind , bool , bool ) {
111111 return v .getStructFieldOKInternal (val , namespace )
112112}
0 commit comments