MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / getGoPackageDir

Method getGoPackageDir

src/resolution/types.ts:276–276  ·  view source on GitHub ↗

* The project-relative directory (`/`-separated, `.` for the root) of * the Go package an import path names, when it is a package of one of the * project's own modules — the `go.mod` at the root or any `go.mod` above * an indexed `.go` file (#2322) — else `null` (the standard library, *

(importPath: string, fromFile?: string)

Source from the content-addressed store, hash-verified

274 * imports from outside ones, and to find the package's files.
275 */
276 getGoPackageDir?(importPath: string, fromFile?: string): string | null;
277 /**
278 * Monorepo workspace member packages, keyed by declared package name.
279 * Returns `null` for single-package repos (no `workspaces` field).

Callers 4

isExternalImportFunction · 0.80
findGoPackageMemberFunction · 0.80
isGoProjectPackageMethod · 0.80
importDirFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected