core

package
v0.0.0-...-6ab4ed2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDependencyTree

func BuildDependencyTree() error

func ShowRootPackages

func ShowRootPackages(packageName string) error

Types

type DepTreeMap

type DepTreeMap = map[string]map[string][]*Dependency

type Dependency

type Dependency struct {
	Name            string
	RequiredVersion string
	UsedVersion     string
}

func GetDependencies

func GetDependencies() ([]Dependency, error)

type DependencyPath

type DependencyPath = [][]string

type DependencyTree

type DependencyTree struct {
	Items []DependencyTreeItem
}

type DependencyTreeItem

type DependencyTreeItem struct {
	Item   Dependency
	Parent *Dependency
}

type Package

type Package struct {
	Dependencies         map[string]string `json:"dependencies"`
	DevDependencies      map[string]string `json:"devDependencies"`
	OptionalDependencies map[string]string `json:"optDependencies"`
}

Jump to

Keyboard shortcuts

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