3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00
ergo/vendor/code.cloudfoundry.org/bytefmt
2020-02-12 13:19:23 -05:00
..
bytes.go fix #782 (bring vendor into the main tree) 2020-02-12 13:19:23 -05:00
LICENSE fix #782 (bring vendor into the main tree) 2020-02-12 13:19:23 -05:00
NOTICE fix #782 (bring vendor into the main tree) 2020-02-12 13:19:23 -05:00
package.go fix #782 (bring vendor into the main tree) 2020-02-12 13:19:23 -05:00
README.md fix #782 (bring vendor into the main tree) 2020-02-12 13:19:23 -05:00

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