resolver

package
v0.0.0-...-b5dce0d Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: BSD-3-Clause, Apache-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 Pkg

type Pkg struct {
	Name           string
	FullImportPath string
	Dir            string
	// contains filtered or unexported fields
}

Pkg represents a Go source package, and its dependencies.

func (*Pkg) Resolve

func (p *Pkg) Resolve()

Resolve recursively finds all dependencies for the Pkg and the packages it depends on.

type ResolveContext

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

ResolveContext represents all the pkg trees rooted at all the subfolders with Go code.

func (*ResolveContext) GetGraph

func (rc *ResolveContext) GetGraph() graph.Graph

GetGraph returns the graph of resolved packages

func (ResolveContext) GetUnresolvedPackages

func (rc ResolveContext) GetUnresolvedPackages() []string

GetUnresolvedPackages returns a list of all the pkgs that failed to resolve

func (*ResolveContext) ResolvePath

func (rc *ResolveContext) ResolvePath(rootPath string, ignoredPkgs []string) error

ResolvePath recursively finds all direct & transitive dependencies for all the packages (and sub-packages), rooted at given path

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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