all options
forky  ] [  sid  ]
[ Source: golang-github-c2h5oh-datasize  ]

Package: golang-github-c2h5oh-datasize-dev (0.0~git20231215.aa82cc1-2)

Links for golang-github-c2h5oh-datasize-dev

Screenshot

Debian Resources:

Download Source Package golang-github-c2h5oh-datasize:

Maintainer:

External Resources:

Similar packages:

Golang helpers for data sizes, human readable sizes, parsing (library)

Just like time package provides time.Second, time.Day constants datasize provides:

 * datasize.B 1 byte
 * datasize.KB 1 kilobyte
 * datasize.MB 1 megabyte
 * datasize.GB 1 gigabyte
 * datasize.TB 1 terabyte
 * datasize.PB 1 petabyte
 * datasize.EB 1 exabyte

Helpers

Just like time package provides duration.Nanoseconds() uint64, duration.Hours() float64 helpers datasize has.

 * ByteSize.Bytes() uint64
 * ByteSize.Kilobytes() float64
 * ByteSize.Megabytes() float64
 * ByteSize.Gigabytes() float64
 * ByteSize.Terabytes() float64
 * ByteSize.Petabytes() float64
 * ByteSize.Exabytes() float64

Download golang-github-c2h5oh-datasize-dev

Download for all available architectures
Architecture Package Size Installed Size Files
all 4.2 kB23.0 kB [list of files]