(value any, fields ...string)
| 69 | } |
| 70 | |
| 71 | func (o *obj) SetNestedField(value any, fields ...string) { |
| 72 | parentField := nestedFieldNoCopy[map[string]any](o, fields[:len(fields)-1]...) |
| 73 | parentField[fields[len(fields)-1]] = value |
| 74 | } |
| 75 | |
| 76 | func (o *obj) CopyNestedField(sourceFields []string, targetFields []string) { |
| 77 | value := nestedFieldNoCopy[any](o, sourceFields...) |