Skip to content

Commit

Permalink
Update validator.go
Browse files Browse the repository at this point in the history
  • Loading branch information
asaskevich committed May 13, 2016
1 parent 5b6e937 commit 37d5f82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion validator.go
Expand Up @@ -529,7 +529,8 @@ func IsLongitude(str string) bool {
return rxLongitude.MatchString(str)
}

// ValidateStruct use tags for fields
// ValidateStruct use tags for fields.
// result will be equal to `false` if there are any errors.
func ValidateStruct(s interface{}) (bool, error) {
if s == nil {
return true, nil
Expand Down

0 comments on commit 37d5f82

Please sign in to comment.