StringFieldIndex is used to extract a field from an object using reflection and builds an index on that field.
| 59 | // StringFieldIndex is used to extract a field from an object |
| 60 | // using reflection and builds an index on that field. |
| 61 | type StringFieldIndex struct { |
| 62 | Field string |
| 63 | Lowercase bool |
| 64 | } |
| 65 | |
| 66 | func (s *StringFieldIndex) FromObject(obj interface{}) (bool, []byte, error) { |
| 67 | v := reflect.ValueOf(obj) |
nothing calls this directly
no outgoing calls
no test coverage detected