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)
Click to show internal directories.
Click to hide internal directories.