tree: 03ba0e2bd977136df9b098e378282be44a210ca7 [path history] [tgz]
  1. bytes.go
  2. LICENSE
  3. NOTICE
  4. package.go
  5. README.md
vendor/code.cloudfoundry.org/bytefmt/README.md

bytefmt

Note: This repository should be imported as code.cloudfoundry.org/bytefmt.

Human-readable byte formatter.

Example:

bytefmt.ByteSize(100.5*bytefmt.MEGABYTE) // returns "100.5M"
bytefmt.ByteSize(uint64(1024)) // returns "1K"

For documentation, please see http://godoc.org/code.cloudfoundry.org/bytefmt