Extractor is responsible to extract content and meta information from documents.
| 10 | |
| 11 | // Extractor is responsible to extract content and meta information from documents. |
| 12 | type Extractor interface { |
| 13 | Extract(ctx context.Context, ri *provider.ResourceInfo) (Document, error) |
| 14 | } |
| 15 | |
| 16 | func getFirstValue(m map[string][]string, key string) (string, error) { |
| 17 | if m == nil { |
no outgoing calls
no test coverage detected