JavascriptImporter allows importing files from a pre-defined map of absolute paths.
| 15 | // JavascriptImporter allows importing files from a pre-defined map of absolute |
| 16 | // paths. |
| 17 | type JavascriptImporter struct { |
| 18 | files map[string]string |
| 19 | } |
| 20 | |
| 21 | // Import looks up files in JavascriptImporter |
| 22 | func (importer *JavascriptImporter) Import(importedFrom, importedPath string) (jsonnet.Contents, string, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected