| 1 | Source: golang-github-c2h5oh-datasize |
| 2 | Section: golang |
| 3 | Priority: optional |
| 4 | Maintainer: Daniel Baumann <[email protected]> |
| 5 | Build-Depends: |
| 6 | debhelper-compat (= 13), |
| 7 | dh-sequence-golang, |
| 8 | dpkg-build-api (= 1), |
| 9 | golang-go, |
| 10 | Standards-Version: 4.7.4 |
| 11 | Homepage: https://github.com/c2h5oh/datasize |
| 12 | Vcs-Browser: https://forgejo.debian.net/golang/golang-github-c2h5oh-datasize |
| 13 | Vcs-Git: https://forgejo.debian.net/golang/golang-github-c2h5oh-datasize |
| 14 | Testsuite: autopkgtest-pkg-go |
| 15 | XS-Go-Import-Path: github.com/c2h5oh/datasize |
| 16 | |
| 17 | Package: golang-github-c2h5oh-datasize-dev |
| 18 | Section: golang |
| 19 | Architecture: all |
| 20 | Multi-Arch: foreign |
| 21 | Depends: |
| 22 | ${misc:Depends}, |
| 23 | Description: Golang helpers for data sizes, human readable sizes, parsing (library) |
| 24 | Just like time package provides time.Second, time.Day constants datasize |
| 25 | provides: |
| 26 | . |
| 27 | * datasize.B 1 byte |
| 28 | * datasize.KB 1 kilobyte |
| 29 | * datasize.MB 1 megabyte |
| 30 | * datasize.GB 1 gigabyte |
| 31 | * datasize.TB 1 terabyte |
| 32 | * datasize.PB 1 petabyte |
| 33 | * datasize.EB 1 exabyte |
| 34 | . |
| 35 | Helpers |
| 36 | . |
| 37 | Just like time package provides duration.Nanoseconds() uint64, |
| 38 | duration.Hours() float64 helpers datasize has. |
| 39 | . |
| 40 | * ByteSize.Bytes() uint64 |
| 41 | * ByteSize.Kilobytes() float64 |
| 42 | * ByteSize.Megabytes() float64 |
| 43 | * ByteSize.Gigabytes() float64 |
| 44 | * ByteSize.Terabytes() float64 |
| 45 | * ByteSize.Petabytes() float64 |
| 46 | * ByteSize.Exabytes() float64 |