Package Usage: go: github.com/tonistiigi/units
Simple byte size formatting.
This package implements types that can be used in stdlib formatting functions
like `fmt.Printf` to control the output of the expected printed string.
Floating point flags %f and %g print the value in using the correct unit
suffix. Decimal units are default, # switches to binary units. If a value is
best represented as full bytes, integer bytes are printed instead.
Integer flag %d always prints the value in bytes. # flag adds an unit prefix.
%v is equal to %g
1 version
Latest release: about 7 years ago
275 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/tonistiigi/units