(readDocFunc ReadDocumentFunc)
| 73 | } |
| 74 | |
| 75 | func WithReadDocumentFunc(readDocFunc ReadDocumentFunc) ManagerOpt { |
| 76 | return func(manager *Manager) { |
| 77 | manager.readDocFunc = readDocFunc |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | // Read the document from the given URI and return its contents. This default |
| 82 | // implementation of a ReadDocumentFunc only handles file: URIs and returns an |
no outgoing calls