Function
importPackage
(ir *interp.Interp, path string, alias string)
Source from the content-addressed store, hash-verified
| 243 | } |
| 244 | |
| 245 | func 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. |
Tested by
no test coverage detected