Add var timeDurationType

pull/642/head
Elias Rodrigues 4 years ago
parent 94470e68f3
commit 0c71d5cc08
  1. 5
      validator_instance.go

@ -41,8 +41,9 @@ const (
) )
var ( var (
timeType = reflect.TypeOf(time.Time{}) timeType = reflect.TypeOf(time.Time{})
defaultCField = &cField{namesEqual: true} timeDurationType = reflect.TypeOf(time.Duration(0))
defaultCField = &cField{namesEqual: true}
) )
// FilterFunc is the type used to filter fields using // FilterFunc is the type used to filter fields using

Loading…
Cancel
Save