Back to

Package simple

Latest Go to latest

The highest tagged major version is .

Published: Oct 21, 2020 | Licenses: BSD-3-Clause , MIT | Module:


type RestorerResolver

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

func New(m map[string]string) RestorerResolver

func (RestorerResolver) ResolvePackage

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier