mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-23 11:12:44 +01:00
337 B
337 B
bytefmt
Note: This repository should be imported as
code.cloudfoundry.org/bytefmt
.
Human-readable byte formatter.
Example:
.ByteSize(100.5*bytefmt.MEGABYTE) // returns "100.5M"
bytefmt.ByteSize(uint64(1024)) // returns "1K" bytefmt
For documentation, please see http://godoc.org/code.cloudfoundry.org/bytefmt