Commit be9b9ab
committed
fix(os/gstructs): strip tag options in TagPriorityName to avoid field name pollution
TagPriorityName() returned raw tag values including options like
",omitempty", causing RuleFuncInput.Field to be "user_name,omitempty"
instead of "user_name". Now splits on comma and takes only the name
part, consistent with structcache.genPriorityTagAndFieldName().
closes gogf#46651 parent 6a3ea89 commit be9b9ab
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
106 | 112 | | |
107 | 113 | | |
108 | 114 | | |
| |||
0 commit comments