Package: golang-github-c2h5oh-datasize-dev
Source: golang-github-c2h5oh-datasize
Version: 0.0~git20231215.aa82cc1-2
Architecture: all
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Daniel Baumann <daniel@debian.org>
Installed-Size: 23
Section: golang
Priority: optional
Multi-Arch: foreign
Homepage: https://github.com/c2h5oh/datasize
Description: 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
