generic

package
v0.0.0-...-9d695bc Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 4 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

Jump to

Keyboard shortcuts

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