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

package guess

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

Index

Package Files

resolver.go

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

func New Uses

func New() RestorerResolver

func WithMap Uses

func WithMap(m map[string]string) RestorerResolver

func (RestorerResolver) ResolvePackage Uses

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

Package guess imports 1 packages (graph) and is imported by 4 packages. Updated 2019-01-21. Refresh now. Tools for package owners.