resolver

package
v0.0.0-...-fae14fb Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResolveStatus

type ResolveStatus uint8
const (
	ResolveMissing ResolveStatus = iota
	ResolveEnabled
	ResolveDisabled
)

type Resolver

type Resolver interface {
	Resolve(sourcePath string, importPath string) (string, ResolveStatus)
	Read(path string) (string, bool)
	PrettyPath(path string) string
}

func NewResolver

func NewResolver(fs fs.FS, extensionOrder []string) Resolver

Jump to

Keyboard shortcuts

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