mod

package
v0.0.0-...-2ee14e4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AtString = "@"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	RootNode *Node
	// contains filtered or unexported fields
}

func NewController

func NewController(baseDir string) *Controller

func NewControllerWithDefault

func NewControllerWithDefault() *Controller

func (*Controller) GetCompileVersion

func (c *Controller) GetCompileVersion(name string) (string, error)

func (*Controller) GetGoModGraph

func (c *Controller) GetGoModGraph() (string, error)

func (*Controller) GetNodes

func (c *Controller) GetNodes(name, version string) []*Node

func (*Controller) GetParentChain

func (c *Controller) GetParentChain(name, version string) [][]*Node

func (*Controller) Init

func (c *Controller) Init() error

func (*Controller) PrintNodesList

func (c *Controller) PrintNodesList(nodesList [][]*Node)

func (*Controller) PrintParentChain

func (c *Controller) PrintParentChain(name, version string, modUseCompileVersion bool) error

type Node

type Node struct {
	RootPath string
	FullName string
	Name     string
	Version  string
	Finished bool

	ParentNodes []*Node
	ChildNodes  []*Node
}

func NewNode

func NewNode(rootPath, fullName string) *Node

func (*Node) AddChildNode

func (n *Node) AddChildNode(childNode *Node)

func (*Node) AddParentNode

func (n *Node) AddParentNode(parentNode *Node)

func (*Node) GetParentChain

func (n *Node) GetParentChain() [][]*Node

func (*Node) Resolve

func (n *Node) Resolve(m map[string]*Node) error

func (*Node) String

func (n *Node) String() string

type NodeList

type NodeList []*Node

func (NodeList) Reverse

func (nl NodeList) Reverse() NodeList

Jump to

Keyboard shortcuts

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