Skip to content

Commit

Permalink
fix struct tag options deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
switchupcb committed Nov 13, 2022
1 parent 81849ec commit d4722f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/models/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (f *Field) Deepcopy(cyclic map[*Field]bool) *Field {
copied.Tags[k1] = make(map[string][]string, len(mapval))
for k2, sliceval := range f.Tags[k1] {
copied.Tags[k1][k2] = make([]string, len(sliceval))
copy(f.Tags[k1][k2], copied.Tags[k1][k2])
copy(copied.Tags[k1][k2], f.Tags[k1][k2])
}
}

Expand Down

0 comments on commit d4722f4

Please sign in to comment.