pkgs

package
v0.0.0-...-5193a12 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFilesPackagePaths

func GetFilesPackagePaths(ctx context.Context, moduleDir string, filePaths ...string) ([]string, error)

Types

type DependencyGraph

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

func BuildDependencyGraph

func BuildDependencyGraph(ctx context.Context, moduleDir string, direction EdgeDirection) (*DependencyGraph, error)

func (*DependencyGraph) GetImporters

func (d *DependencyGraph) GetImporters(pkgName string) ([]string, error)

func (*DependencyGraph) String

func (d *DependencyGraph) String() string

type EdgeDirection

type EdgeDirection string
const (
	EdgeDirectionToDependency   EdgeDirection = "to_dependency"
	EdgeDirectionFromDependency EdgeDirection = "from_dependency"
)

Jump to

Keyboard shortcuts

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