generic

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenCountStr

func GenCountStr(cnt map[string]uint, l *log.Logger) string

Generate statistics string, horizontal.

func GenCountStrVert

func GenCountStrVert(cnt map[string]uint, l *log.Logger) string

Generate statistics string, vertical.

func HumanizeDuration

func HumanizeDuration(t time.Duration, l *log.Logger) string

Types

type CountItem

type CountItem struct {
	Name  string
	Count uint
	Total uint
}

type CountItemMap

type CountItemMap map[string]*CountItem

type CountItemMap map[string]uint

type CountItemSlice

type CountItemSlice []CountItem

func SortItemMapBySel

func SortItemMapBySel(what string, m *CountItemMap) CountItemSlice

func Top5

type UserInputs added in v1.0.5

type UserInputs struct {
	FocusIndex int
	ParamTexts []string
	Params     []textinput.Model
}

Jump to

Keyboard shortcuts

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