gomodules

package
v0.7.33 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2019 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver maps modules from import paths to their pkg.Import representation.

func Mock

func Mock(modules string) (Resolver, error)

Mock creates a golang.Resolver using any string input.

func New

func New(dir string) (Resolver, error)

New connects goModuleList and a parser to return a golang.Resolver.

func (Resolver) Resolve

func (r Resolver) Resolve(importpath string) (pkg.Import, error)

Resolve calculates a package's module path from its import path, and returns the resolved pkg.Import for the module path.

Jump to

Keyboard shortcuts

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