gopackages

package
v0.27.3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: BSD-3-Clause, MIT Imports: 3 Imported by: 5

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 struct {
	Dir    string
	Config packages.Config

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

func New added in v0.16.0

func New(dir string) *RestorerResolver

func WithConfig added in v0.16.0

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

func WithHints added in v0.23.0

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

func (*RestorerResolver) ResolvePackage added in v0.16.0

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

Jump to

Keyboard shortcuts

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