fmt

package
v2.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address

func Address(host string, port int) string

func PrettyPercent

func PrettyPercent[T Number](x, total T) string

func PrettyRate

func PrettyRate(n float64) string

PrettyRate returns a pretty version of n, where n is in bytes per nanosecond

func PrettySize

func PrettySize(n int64) string

func RoundedDurationString

func RoundedDurationString(d time.Duration, digits int) string

Types

type Number

type Number interface {
	~float32 | ~float64 | ~int | ~int32 | ~int64
}

Jump to

Keyboard shortcuts

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