Skip to content

Latest commit

 

History

History
 
 

datasize

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

datasize

Parse, format, and convert to differents units in bytes.

import "github.com/johnstarich/go/datasize"

gigs := datasize.Gigabytes(1000)
fmt.Println("1000 Gigabytes equals", gigs.String())
// 1000 Gigabytes equals 1 TB