Documentation
¶
Overview ¶
Package mapper contains a translator using a raw map[string]string
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finder ¶
Finder implements license.Finder and sets the license type based on the given mapping if the path exists in the map.
type Translator ¶
type Translator struct {
// Map is the mapping of package names to translate. If the name is
// exact then it will map exactly to the destination. If the name begins
// and ends with `/` (forward slash) then it will be treated like a regular
// expression. The destination can use \1, \2, ... to reference capture
// groups.
//
// The translation will run until in a loop until no translation occurs
// anymore or len(Map) translations occur, in which case it is an error.
Map map[string]string
}
Click to show internal directories.
Click to hide internal directories.