Skip to content

Latest commit

 

History

History

lfmt

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

lfmt

Human-readable byte formatter.

Example:

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