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

package gopackages

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

Index

Package Files

resolver.go

type RestorerResolver Uses

type RestorerResolver struct {
    Dir    string
    Config packages.Config

    // Hints (package path -> name) is first checked before asking the packages package
    Hints map[string]string
}

func New Uses

func New(dir string) *RestorerResolver

func WithConfig Uses

func WithConfig(dir string, config packages.Config) *RestorerResolver

func WithHints Uses

func WithHints(dir string, hints map[string]string) *RestorerResolver

func (*RestorerResolver) ResolvePackage Uses

func (r *RestorerResolver) ResolvePackage(path string) (string, error)

Package gopackages imports 3 packages (graph) and is imported by 1 packages. Updated 2019-01-18. Refresh now. Tools for package owners.