| 1 |
Source: golang-github-rodaine-table |
| 2 |
Section: golang |
| 3 |
Priority: optional |
| 4 |
Maintainer: Debian Go Packaging Team <[email protected]> |
| 5 |
Uploaders: Anthony Fok <[email protected]> |
| 6 |
Rules-Requires-Root: no |
| 7 |
Build-Depends: debhelper-compat (= 13), |
| 8 |
dh-sequence-golang, |
| 9 |
golang-any, |
| 10 |
golang-github-google-go-cmp-dev, |
| 11 |
golang-github-mattn-go-runewidth-dev, |
| 12 |
golang-github-stretchr-testify-dev |
| 13 |
Testsuite: autopkgtest-pkg-go |
| 14 |
Standards-Version: 4.6.2 |
| 15 |
Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-rodaine-table |
| 16 |
Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-rodaine-table.git |
| 17 |
Homepage: https://github.com/rodaine/table |
| 18 |
XS-Go-Import-Path: github.com/rodaine/table |
| 19 |
|
| 20 |
Package: golang-github-rodaine-table-dev |
| 21 |
Architecture: all |
| 22 |
Multi-Arch: foreign |
| 23 |
Depends: golang-github-google-go-cmp-dev, |
| 24 |
golang-github-mattn-go-runewidth-dev, |
| 25 |
golang-github-stretchr-testify-dev, |
| 26 |
${misc:Depends} |
| 27 |
Description: Go CLI Table Generator (library) |
| 28 |
Go package "table" provides a convenient way to generate tabular output |
| 29 |
of any data, primarily useful for CLI tools. |
| 30 |
. |
| 31 |
Features: |
| 32 |
. |
| 33 |
* Accepts all data types (string, int, interface{}, everything!) and |
| 34 |
will use the String() string method of a type if available. |
| 35 |
* Can specify custom formatting for the header and first column cells |
| 36 |
for better readability. |
| 37 |
* Columns are left-aligned and sized to fit the data, with customizable |
| 38 |
padding. |
| 39 |
* The printed output can be sent to any io.Writer, defaulting to |
| 40 |
os.Stdout. |
| 41 |
* Built to an interface, so you can roll your own Table implementation. |
| 42 |
* Works well with ANSI colors (fatih/color |
| 43 |
(https://github.com/fatih/color) in the example)! |
| 44 |
* Can provide a custom WidthFunc to accomodate multi- and zero-width |
| 45 |
characters (such as runewidth (https://github.com/mattn/go-runewidth)) |