guess

package
v0.22.4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2018 License: BSD-3-Clause, MIT Imports: 1 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestorerResolver added in v0.16.0

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, the package name is guessed from the last part of the path (after the last slash).

func New added in v0.16.0

func New() RestorerResolver

func WithMap added in v0.16.0

func WithMap(m map[string]string) RestorerResolver

func (RestorerResolver) ResolvePackage added in v0.16.0

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

Jump to

Keyboard shortcuts

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