MCPcopy Create free account
hub / github.com/dop251/goja_nodejs / Require

Method Require

require/module.go:230–237  ·  view source on GitHub ↗

Require can be used to import modules from Go source (similar to JS require() function).

(p string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

requireMethod · 0.95
TestErrorPropagationFunction · 0.80
TestSourceMapLoaderFunction · 0.80
TestDefaultModuleLoaderFunction · 0.80
TestDefaultPathResolverFunction · 0.80

Calls 1

resolveMethod · 0.95

Tested by 4

TestErrorPropagationFunction · 0.64
TestSourceMapLoaderFunction · 0.64
TestDefaultModuleLoaderFunction · 0.64
TestDefaultPathResolverFunction · 0.64