format

package
v0.0.0-...-8491e4a Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KILOBYTE  uint64 = 1024
	MEGABYTE  uint64 = KILOBYTE * 1024
	GIGABYTE  uint64 = MEGABYTE * 1024
	TERRABYTE uint64 = GIGABYTE * 1024
)

Variables

This section is empty.

Functions

func Integer

func Integer(n uint64, sep rune) string

Integer ... Pretty print an integer value using commas, if it is large enough.

func Number

func Number(value uint64, width int32, prec int32, detailed bool, expandSizes bool) string

Number ... Print an integer value with a size suffix, keeping it within the provided restraints.

Types

This section is empty.

Jump to

Keyboard shortcuts

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