FieldSetIndex is used to extract a field from an object using reflection and builds an index on whether the field is set by comparing it against its type's nil value.
| 603 | // builds an index on whether the field is set by comparing it against its |
| 604 | // type's nil value. |
| 605 | type FieldSetIndex struct { |
| 606 | Field string |
| 607 | } |
| 608 | |
| 609 | func (f *FieldSetIndex) FromObject(obj interface{}) (bool, []byte, error) { |
| 610 | v := reflect.ValueOf(obj) |
nothing calls this directly
no outgoing calls
no test coverage detected