dst: github.com/dave/dst/decorator/resolver/simple Index | Files

package simple

import "github.com/dave/dst/decorator/resolver/simple"


Package Files


type RestorerResolver Uses

type RestorerResolver map[string]string

RestorerResolver is a map of package path -> package name. Names are resolved from this map, and if a name doesn't exist in the map, an error is returned. Note that Guess is not a NodeResolver, so can't properly resolve identifiers in dot import packages.

func New Uses

func New(m map[string]string) RestorerResolver

func (RestorerResolver) ResolvePackage Uses

func (r RestorerResolver) ResolvePackage(importPath string) (string, error)

Package simple imports 1 packages (graph). Updated 2019-01-21. Refresh now. Tools for package owners.