cut

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Erase

func Erase(stat *Node) stat.Stat

func Reset

func Reset(stats map[string]*Node)

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func (*Command) Execute

func (cmd *Command) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface{}) subcommands.ExitStatus

func (*Command) Name

func (*Command) Name() string

func (*Command) SetFlags

func (cmd *Command) SetFlags(f *flag.FlagSet)

func (*Command) Synopsis

func (*Command) Synopsis() string

func (*Command) Usage

func (*Command) Usage() string

type Node

type Node struct {
	*pkggraph.Node

	Cut stat.Stat

	Imports    []*Node
	ImportedBy []*Node
	// contains filtered or unexported fields
}

func (*Node) Import

func (parent *Node) Import(child *Node)

func (*Node) InDegree

func (parent *Node) InDegree() int

func (*Node) OutDegree

func (parent *Node) OutDegree() int

func (*Node) Pkg

func (parent *Node) Pkg() *packages.Package

Jump to

Keyboard shortcuts

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