Skip to content

Commit

Permalink
fix validate uint type of struct (#65)
Browse files Browse the repository at this point in the history
change format for printf, fix validate uint field type of struct
  • Loading branch information
amjustdoit authored and thedevsaddam committed Jun 14, 2019
1 parent 12641b3 commit 4432d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func isRuleExist(rule string) bool {
func toString(v interface{}) string {
str, ok := v.(string)
if !ok {
str = fmt.Sprintf("%#v", v)
str = fmt.Sprintf("%v", v)
}
return str
}
Expand Down

0 comments on commit 4432d4f

Please sign in to comment.