Location.lookup

Looks up already-loaded packages at a specific version

Looks up a package according to this Location's priority, that is, packages from the search path and local packages have the highest priority.

struct Location
inout
inout(Package)
lookup

Parameters

name PackageName

The full name of the package to look up

ver Version

The version to look up

Return Value

Type: inout(Package)

A Package if one was found, null if none exists.

Meta