Skip to content

Commit

Permalink
- Fix ptr finalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
legion-zver committed Jun 21, 2018
1 parent cf4acfa commit 0df3b65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/finalizer/finalizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ func Finalize(encTagName string, v interface{}, groups ...string) interface{} {
elemKind == reflect.Struct ||
elemKind == reflect.Slice ||
elemKind == reflect.Array ||
elemKind == reflect.Map {
elemKind == reflect.Map ||
elemKind == reflect.Ptr {
list := make([]interface{}, val.Len(), val.Len())
for i := 0; i < val.Len(); i++ {
if elem := val.Index(i); elem.IsValid() {
Expand Down

0 comments on commit 0df3b65

Please sign in to comment.