proj

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: 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 Finder

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

func NewFinder

func NewFinder(scanner *syntree.Scanner) *Finder

NewFinder returns a new instance of the Finder struct with a given scanner.

func (*Finder) FindProjectByDirectory

func (s *Finder) FindProjectByDirectory(directory string) (*projscan.Project, error)

FindProjectByDirectory returns a projscan.Project object representing the project in the given directory, or an error if the project cannot be found.

func (*Finder) FindProjectByPackage

func (s *Finder) FindProjectByPackage(pkg *projscan.Package) (*projscan.Project, error)

FindProjectByPackage returns a projscan.Project object representing the project that contains the given package, or an error if the project cannot be found.

type Module

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

func (*Module) Dependencies

func (m *Module) Dependencies() ([]*projscan.Dependency, error)

Dependencies returns a list of dependencies for the module, or an error if they cannot be determined.

func (*Module) Directory

func (m *Module) Directory() string

Directory returns the directory containing the go.mod file for the module.

func (*Module) Name

func (m *Module) Name() (string, error)

Name returns the name of the module, or an error if it cannot be determined.

Jump to

Keyboard shortcuts

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