cli

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP  = "GoHeft"
	VER  = "1.0.1"
	DESC = "Utility for listing sizes of used static libraries"
)
View Source
const (
	OPT_TAGS     = "t:tags"
	OPT_EXTERNAL = "E:external"
	OPT_PAGER    = "P:pager"
	OPT_MIN_SIZE = "m:min-size"
	OPT_NO_COLOR = "nc:no-color"
	OPT_HELP     = "h:help"
	OPT_VER      = "v:version"

	OPT_VERB_VER     = "vv:verbose-version"
	OPT_COMPLETION   = "completion"
	OPT_GENERATE_MAN = "generate-man"
)
View Source
const (
	SIZE_HUGE  uint64 = 5 * 1024 * 1024 // 5Mb
	SIZE_BIG   uint64 = 1024 * 1024     // 1Mb
	SIZE_SMALL uint64 = 25 * 1024       // 25Kb
)

Variables

This section is empty.

Functions

func Run

func Run(gitRev string, gomod []byte)

Run is main utility function

Types

type LibInfo

type LibInfo struct {
	Package string
	Size    uint64
}

type LibInfoSlice

type LibInfoSlice []LibInfo

func (LibInfoSlice) Len

func (s LibInfoSlice) Len() int

func (LibInfoSlice) Less

func (s LibInfoSlice) Less(i, j int) bool

func (LibInfoSlice) Swap

func (s LibInfoSlice) Swap(i, j int)

func (LibInfoSlice) Total

func (s LibInfoSlice) Total() uint64

Total returns size of all libraries

Jump to

Keyboard shortcuts

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