cut

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reset

func Reset(stats map[string]*Stat)

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 Info

type Info struct {
	Packages   int
	Lines      int64
	SourceSize memory.Bytes
}

func Erase

func Erase(stat *Stat) Info

func (Info) Add

func (a Info) Add(b Info) Info

type Stat

type Stat struct {
	*packages.Package

	Info Info
	Cut  Info

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

func (*Stat) Import

func (parent *Stat) Import(child *Stat)

func (*Stat) InDegree

func (parent *Stat) InDegree() int

func (*Stat) OutDegree

func (parent *Stat) OutDegree() int

Jump to

Keyboard shortcuts

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