measure

package
v1.15.3 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: OSL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Number = Symbols{"", " K", " M", " B", " T"}
	Size   = Symbols{" B", " kB", " MB", " GB", " TB"}
	Rate   = Symbols{" B/s", " kB/s", " MB/s", " GB/s", " TB/s"}
)

Functions

func Percent

func Percent(value, total int64) string

Types

type Symbols

type Symbols []string

func (Symbols) FormatFloat

func (s Symbols) FormatFloat(f float64) string

func (Symbols) FormatInt

func (s Symbols) FormatInt(i int64) string

func (Symbols) FormatUint

func (s Symbols) FormatUint(i uint64) string

Jump to

Keyboard shortcuts

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