mapping

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsDir

func ContainsDir(path, dir string) bool

ContainsDir returns true if path contains dir.

Types

type MatchStatus

type MatchStatus int
const (
	Excluded MatchStatus = iota
	Matched
	Unmatched
)

type SourceMapper

type SourceMapper interface {
	// Map returns the virtual file mapped to the given actual file. It returns
	// true if the mapping is valid according the predefined mapping rules. It
	// also returns the match status.
	Map(actual string) (string, bool, MatchStatus)
}

SourceMapper is an interface for source code mapping.

func New

func New(cfg *conf.Config) SourceMapper

New creates and returns a new SourceMapping.

Jump to

Keyboard shortcuts

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