format

package
v0.1.29 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Byte     = 1
	KiloByte = Byte * 1000
	MegaByte = KiloByte * 1000
	GigaByte = MegaByte * 1000
	TeraByte = GigaByte * 1000
)
View Source
const (
	Thousand = 1000
	Million  = Thousand * 1000
	Billion  = Million * 1000
)

Variables

This section is empty.

Functions

func HumanBytes added in v0.1.2

func HumanBytes(b int64) string

func HumanNumber added in v0.1.9

func HumanNumber(b uint64) string

func HumanTime

func HumanTime(t time.Time, zeroValue string) string

func HumanTimeLower

func HumanTimeLower(t time.Time, zeroValue string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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