scanner

package
v0.0.0-...-03c2bed Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package scanner provides document scanning functionality.

This package supports scanning and segmenting Markdown documents and Go documentation comments for analysis.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterRelevantSegments

func FilterRelevantSegments(segments []types.DocSegment, symbols []types.ChangedSymbol) []types.DocSegment

FilterRelevantSegments filters segments that may be relevant to the symbols. This is a pre-filter based on keyword matching.

func ScanGoDoc

func ScanGoDoc(filePath string) ([]types.DocSegment, error)

ScanGoDoc scans a Go file and extracts documentation comments.

func ScanGoDocDir

func ScanGoDocDir(dir string) ([]types.DocSegment, error)

ScanGoDocDir scans a directory for Go documentation comments.

func ScanMarkdown

func ScanMarkdown(filePath string) ([]types.DocSegment, error)

ScanMarkdown scans a Markdown file and returns document segments. Each segment corresponds to a heading and its content.

func ScanMarkdownDir

func ScanMarkdownDir(rootDir string, patterns []string) ([]types.DocSegment, error)

ScanMarkdownDir scans a directory for Markdown files matching the patterns.

Types

This section is empty.

Jump to

Keyboard shortcuts

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