search

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package search scans .devsys/ text files for a keyword without any database or index (方案 §14.1, 实施计划 M1.6). The scan is a plain read-only walk; it skips storage-internal material (.cache/, local/) and never takes the project lock. File reads fan out across workers because a thousand-file project must answer in interactive time; results keep the deterministic order a single-threaded walk would produce.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Match

type Match struct {
	// Path is relative to .devsys/, slash-separated.
	Path string `json:"path"`
	// Line is 1-based.
	Line int `json:"line"`
	// Text is the matched line, truncated to a bounded length.
	Text string `json:"text"`
}

Match is one located keyword hit.

func Search(devsysDir, query string) ([]Match, int, error)

Search returns keyword hits across the project's managed state, ordered by path and then line. query is matched as a case-insensitive substring.

Jump to

Keyboard shortcuts

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