expander

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoPrefix gets returned if the given path does not have a prefix.
	ErrNoPrefix = fmt.Errorf("path does not have a prefix")
)

Functions

This section is empty.

Types

type Expander

type Expander interface {
	ExpandPath(path string) (string, error)
	ExpandPackage(path string) (string, error)
	IsExpandable(path string) error
}

Expander is an interface for components which are able to expand path prefixes to absolute paths.

Jump to

Keyboard shortcuts

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