Source: golang-github-c2h5oh-datasize
Section: golang
Priority: optional
Maintainer: Daniel Baumann <daniel@debian.org>
Build-Depends:
 debhelper-compat (= 13),
 dh-sequence-golang,
 dpkg-build-api (= 1),
 golang-any,
Standards-Version: 4.7.3
Homepage: https://github.com/c2h5oh/datasize
Vcs-Browser: https://forgejo.debian.net/golang/golang-github-c2h5oh-datasize
Vcs-Git: https://forgejo.debian.net/golang/golang-github-c2h5oh-datasize
Testsuite: autopkgtest-pkg-go
XS-Go-Import-Path: github.com/c2h5oh/datasize

Package: golang-github-c2h5oh-datasize-dev
Section: golang
Architecture: all
Multi-Arch: foreign
Depends:
 ${misc:Depends},
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
