Registry / utility / tonistiigi-units

tonistiigi-units

JSON →
library0.0.0-20180711220420-6950e57a87eagogounverified

A Go package for formatting byte sizes with human-readable units (SI and binary).

go get github.com/tonistiigi/units
INSTALL
IMPORT
SIG · TONISTIIGI-UNITS
T
tonistiigi-units
utilitygov0.0.0-20180711220420-6950e57a87ea
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

units
github.com/tonistiigi/units

Format a byte count as a human-readable string.

package main import ( "fmt" "github.com/tonistiigi/units" ) func main() { fmt.Println(units.Bytes(1024)) // Output: 1.0 kB }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20180711220420-6950e57a87ealatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
Bingbot
3
Resources
tonistiigi-units — go get tonistiigi-units · libregistry