Registry / utility / bytefmt

bytefmt

JSON →
library0.76.0gogounverified

A package for converting byte sizes to and from human-readable formats.

go get code.cloudfoundry.org/bytefmt
INSTALL
IMPORT
SIG · BYTEFMT
B
bytefmt
utilitygov0.76.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.

bytefmt
✓ code.cloudfoundry.org/bytefmt

Convert bytes to human-readable string.

package main import ( "fmt" "code.cloudfoundry.org/bytefmt" ) func main() { fmt.Println(bytefmt.ByteSize(1024 * 1024)) // Output: 1M }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
bytefmt — go get bytefmt · libregistry