difftool

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiffReport added in v0.20.2

type DiffReport struct {
	SourceCodeMapPath string
	SourceCodePath    string
	Sources           map[string]*sourceDiff
	TotalDifferences  int
}

func CompareSourceMapToSourceCode

func CompareSourceMapToSourceCode(
	pluginID string,
	sourceCodeMapFile string,
	sourceCodePath string,
) (DiffReport, error)

CompareSourceMapToSourceCode compares the source code map to the source code. It returns a DiffReport that contains the differences between the source code map and the source code. sourceCodeMapFile is the path to the source code map file. (.js.map) sourceCodePath is the path to the source code directory. (the directory that contains the source code files)

func (*DiffReport) GeneratePrintableReport added in v0.20.2

func (r *DiffReport) GeneratePrintableReport() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳