您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

README.md 337B

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