module

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph

type Graph []*Module

func ScanDir

func ScanDir(fsys fs.FS, skipIndirectDeps bool) (Graph, error)

func (Graph) FindByName

func (g Graph) FindByName(name string) *Module

func (Graph) Prune

func (g Graph) Prune(filter func(*Module) bool) Graph

type Module

type Module struct {
	Name         string
	Path         string
	Dependencies []*Module
}

func FromFile

func FromFile(fsys fs.FS, path string, skipIndirectDeps bool) (*Module, error)

func New

func New(name string) *Module

func (*Module) AddDependency

func (m *Module) AddDependency(modules ...*Module)

func (*Module) HasDep

func (m *Module) HasDep(name string) bool

Jump to

Keyboard shortcuts

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