format

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Byte = 1

	KiloByte = Byte * 1000
	MegaByte = KiloByte * 1000
	GigaByte = MegaByte * 1000
	TeraByte = GigaByte * 1000

	KibiByte = Byte * 1024
	MebiByte = KibiByte * 1024
	GibiByte = MebiByte * 1024
)
View Source
const (
	Thousand = 1000
	Million  = Thousand * 1000
	Billion  = Million * 1000
)

Variables

This section is empty.

Functions

func HumanBytes

func HumanBytes(b int64) string

func HumanBytes2

func HumanBytes2(b uint64) string

func HumanNumber

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
JackTT - Gopher 🇻🇳