uses

package
v0.0.0-...-c40e0a1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ShortDesc = "print unit uses graph"

Variables

This section is empty.

Functions

func FindCycles

func FindCycles(index *Index) [][]string

func Help

func Help(args []string)

func Main

func Main(args []string)

func Why

func Why(index *Index, mainTarget string) (reasons []string)

func WriteDOT

func WriteDOT(index *Index, out io.Writer) (n int, err error)

func WriteGLAY

func WriteGLAY(index *Index, out io.Writer) (n int, err error)

func WriteTGF

func WriteTGF(index *Index, out io.Writer) (n int, err error)

func WriteTXT

func WriteTXT(index *Index, out io.Writer) (n int, err error)

Types

type Flags

type Flags struct {
	Help    bool
	Verbose bool

	Search string
	Root   string
	Output string

	Paths []string

	Why string

	InterfaceOnly bool

	Set *flag.FlagSet
}

func (*Flags) Parse

func (flags *Flags) Parse(args []string)

type Index

type Index struct {
	Verbose       bool
	InterfaceOnly bool

	RootFiles []string

	Path    map[string]string
	IncPath map[string]string
	Uses    map[string]*UnitUses
}

func NewIndex

func NewIndex() *Index

func (*Index) AddSourceDir

func (index *Index) AddSourceDir(dir string) error

func (*Index) Build

func (index *Index) Build(rootfiles []string)

func (*Index) IsLoaded

func (index *Index) IsLoaded(unitname string) bool

func (*Index) Load

func (index *Index) Load(unitname string) *UnitUses

func (*Index) NormalName

func (index *Index) NormalName(name string) string

type UnitUses

type UnitUses struct {
	Unit           string
	Interface      []string // case insensitive sorted names
	Implementation []string // case insensitive sorted names
}

Jump to

Keyboard shortcuts

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