weight

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 Order

type Order string
const (
	Default     Order = ""
	BySize      Order = "size"
	ByTotalSize Order = "totalsize"
	ByName      Order = "name"
)

func (*Order) Set

func (mode *Order) Set(v string) error

func (*Order) String

func (mode *Order) String() string

type Tree

type Tree struct {
	Path   string
	Name   string
	Lookup map[string]*Tree
	Childs []*Tree

	TotalSize int64

	Size int64
	Syms []*nm.Sym
}

func NewTree

func NewTree(name string) *Tree

func (*Tree) Insert

func (tree *Tree) Insert(sym *nm.Sym, parent string, suffix []string)

func (*Tree) Sort

func (tree *Tree) Sort(sortfn func([]*Tree), sortSyms func([]*nm.Sym))

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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