Skip to content

Commit

Permalink
Merge pull request #10 from wilcosheh/master
Browse files Browse the repository at this point in the history
fix not work when having slices
  • Loading branch information
leebenson authored Sep 10, 2017
2 parents 800d39f + 94c54a5 commit bdfc728
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions conform.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,11 @@ func Strings(iface interface{}) error {
tags := v.Tag.Get("conform")
slice[i] = transformString(input, tags)
}
return nil
} else {
val := reflect.ValueOf(el.Interface())
for i := 0; i < val.Len(); i++ {
Strings(val.Index(i).Addr().Interface())
}
return nil
}
}
case reflect.Struct:
Expand Down

0 comments on commit bdfc728

Please sign in to comment.