dependency

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Display

func Display(graph Graph)

Displays the dependency graph

func Has

func Has(graph Graph) bool

Types

type Graph

type Graph []*Node

func Resolve

func Resolve(graph Graph) (Graph, error)

Resolves the dependency graph

func (Graph) String

func (g Graph) String() string

type Node

type Node struct {
	// Name of the node
	Name string

	// Dependencies of the node
	Deps []string
}

Node represents a single node in the graph with it's dependencies

func NewNode

func NewNode(name string, deps ...string) *Node

NewNode creates a new node

Jump to

Keyboard shortcuts

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