MCPcopy
hub / github.com/google/go-jsonnet / JavascriptImporter

Struct JavascriptImporter

cmd/wasm/main.go:17–19  ·  view source on GitHub ↗

JavascriptImporter allows importing files from a pre-defined map of absolute paths.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected