source

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFileDetail

func BuildFileDetail(resolver Resolver, importPath string, blocks []profile.Block) (*model.FileDetail, error)

BuildFileDetail creates highlighted source with line states.

func HighlightLine

func HighlightLine(line string) string

HighlightLine tokenizes one Go source line for HTML display.

func PopulateFileDetails

func PopulateFileDetails(report *model.Report, resolver Resolver) error

PopulateFileDetails fills report file details.

func ReadLines

func ReadLines(path string) ([]string, error)

ReadLines reads source file lines; returns empty if missing.

Types

type Resolver

type Resolver struct {
	ModulePath string
	RootDir    string
}

Resolver maps import paths to filesystem paths.

func (Resolver) PathForImport

func (r Resolver) PathForImport(profilePath string) string

PathForImport returns the filesystem path for a profile file path.

Jump to

Keyboard shortcuts

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