Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 361 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 361 Bytes

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