Documentation ¶
Index ¶
- Constants
- type Controller
- func (c *Controller) GetCompileVersion(name string) (string, error)
- func (c *Controller) GetGoModGraph() (string, error)
- func (c *Controller) GetNodes(name, version string) []*Node
- func (c *Controller) GetParentChain(name, version string) [][]*Node
- func (c *Controller) Init() error
- func (c *Controller) PrintNodesList(nodesList [][]*Node)
- func (c *Controller) PrintParentChain(name, version string, modUseCompileVersion bool) error
- type Node
- type NodeList
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 (*Node) AddChildNode ¶
func (*Node) AddParentNode ¶
func (*Node) GetParentChain ¶
Click to show internal directories.
Click to hide internal directories.