Concrete importers ------------------------------------- FileImporter imports data from the filesystem.
| 222 | |
| 223 | // FileImporter imports data from the filesystem. |
| 224 | type FileImporter struct { |
| 225 | fsCache map[string]*fsCacheEntry |
| 226 | |
| 227 | // JPaths is a slice of extra paths to search for relative imports. |
| 228 | // Note this is not an isolation or restriction mechanism; absolute |
| 229 | // import paths or paths that traverse up the directory hierarchy |
| 230 | // are both allowed, so imports can access any file path regardless |
| 231 | // of the content of JPaths. |
| 232 | JPaths []string |
| 233 | } |
| 234 | |
| 235 | type fsCacheEntry struct { |
| 236 | contents Contents |
nothing calls this directly
no outgoing calls
no test coverage detected