cli

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	APP  = "uc"
	VER  = "1.1.1"
	DESC = "Tool for counting unique lines"
)

Application basic info

View Source
const (
	OPT_MAX_LINES    = "m:max"
	OPT_DISTRIBUTION = "d:dist"
	OPT_NO_PROGRESS  = "np:no-progress"
	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"
)

Constants with options names

View Source
const MAX_SAMPLE_SIZE = 512

MAX_SAMPLE_SIZE is maximum sample size

Variables

This section is empty.

Functions

func Run

func Run(gitRev string, gomod []byte)

Run is main application function

Types

type LineInfo

type LineInfo struct {
	CRC uint64
	Num uint32
}

LineInfo is struct with line info

type Stats

type Stats struct {
	Counters       map[uint64]uint32 // crc64 → num
	Samples        map[uint64]string // crc64 → sample (512 symbols)
	LastReadLines  uint64
	LastReadBytes  float64
	TotalReadLines uint64
	TotalReadBytes float64
	LastReadDate   time.Time
	Finished       bool
	// contains filtered or unexported fields
}

Stats contains data info

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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