Registry / utility / docker-go-units

docker-go-units

JSON →
library0.5.0gogounverified

Provides helper functions to parse and print size and time units in human-readable format.

go get github.com/docker/go-units
INSTALL
IMPORT
SIG · DOCKER-GO-UNITS
D
docker-go-units
utilitygov0.5.0
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/docker/go-units

Converts bytes to a human-readable size string.

package main import ( "fmt" "github.com/docker/go-units" ) func main() { fmt.Println(units.HumanSize(1048576)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
docker-go-units — go get docker-go-units · libregistry