Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Go

Manifest

go.mod — parses require directives (both single-line and block form). Version suffixes are stripped.

Import scanning

Uses tree-sitter with the Go grammar. Extracts from import_declaration / import_spec nodes. Handles single imports, grouped imports, aliased imports, and blank imports (_ "pkg").

All Go imports are static — confidence is always high.

Normalization

  • github.com/foo/bar/bazgithub.com/foo/bar (first 3 segments for domain-style paths)
  • golang.org/x/syncgolang.org/x/sync
  • fmtfmt (stdlib, filtered out)

Stdlib detection

~150 known Go stdlib packages compiled into the binary. Includes nested paths like net/http, encoding/json, etc.

Aliases

None — Go packages use their module path directly.