MCPcopy Index your code
hub / github.com/gopherdata/gophernotes / importPackage

Function importPackage

kernel.go:245–254  ·  view source on GitHub ↗
(ir *interp.Interp, path string, alias string)

Source from the content-addressed store, hash-verified

243}
244
245func importPackage(ir *interp.Interp, path string, alias string) *interp.Import {
246 packages, err := ir.ImportPackagesOrError(
247 map[string]interp.PackageName{
248 path: interp.PackageName(alias),
249 })
250 if err != nil {
251 log.Print(err)
252 }
253 return packages[path]
254}
255
256// prepareSockets sets up the ZMQ sockets through which the kernel
257// will communicate.

Callers 1

runKernelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected