import path

The string that identifies a package in an import line: the module path followed by the folder inside the module.

In more detail

If the module is course.local/probe and the package lives in check/, its import path is course.local/probe/check. Standard library packages have short bare paths such as os or net/http. Renaming a folder changes the import path; there is no separate registry to update.

Example

import "course.local/probe/check"

Related terms

Taught in

References