sourcecode

command
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Command sourcecode demonstrates indexing source code alongside documentation and searching across both. A Markdown document and a Go source file are indexed into the same collection; the source file is parsed with tree-sitter (pure Go) into declaration-level sections and automatically tagged with type=code and language=go metadata. The same query is then run three ways — unfiltered, code only, documentation only — showing how the metadata filter separates the two sources (e.g. to cross-reference a doc claim against its implementation).

No LLM and no external binary are required.

Usage:

go run ./example/sourcecode <storage-dir>

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL