discovery

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClassifyGoFile

func ClassifyGoFile(name string) types.FileClass

ClassifyGoFile classifies a Go file by its filename. It checks for test files, underscore-prefixed files, and dot-prefixed files.

func DetectProjectLanguages

func DetectProjectLanguages(rootDir string) []types.Language

DetectProjectLanguages checks the project root for language indicators and returns all languages detected.

Types

type Walker

type Walker struct{}

Walker discovers and classifies source files in a directory tree.

func NewWalker

func NewWalker() *Walker

NewWalker creates a new Walker instance.

func (*Walker) Discover

func (w *Walker) Discover(rootDir string) (*types.ScanResult, error)

Discover walks rootDir recursively, discovers all source files (.go, .py, .ts, .tsx), classifies them, and returns a ScanResult with file lists and counts.

Jump to

Keyboard shortcuts

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