{"id":13460012,"url":"https://github.com/jedib0t/go-pretty","last_synced_at":"2025-05-12T05:33:52.405Z","repository":{"id":37270856,"uuid":"131546000","full_name":"jedib0t/go-pretty","owner":"jedib0t","description":"Table-writer and more in golang!","archived":false,"fork":false,"pushed_at":"2025-03-27T15:35:45.000Z","size":3397,"stargazers_count":3230,"open_issues_count":10,"forks_count":127,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-05-08T18:04:39.628Z","etag":null,"topics":["ascii","golang","list","pretty","progress-bar","progressbar","string-manipulation","table","table-writer","tablewriter"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jedib0t.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-04-30T01:54:06.000Z","updated_at":"2025-05-08T14:12:29.000Z","dependencies_parsed_at":"2023-10-05T00:28:17.420Z","dependency_job_id":"8ebee94b-8b9b-4716-9c2c-616e6543f4ae","html_url":"https://github.com/jedib0t/go-pretty","commit_stats":{"total_commits":200,"total_committers":17,"mean_commits":"11.764705882352942","dds":"0.15000000000000002","last_synced_commit":"b0affc2e1dca52789f977147b5ba48371a628453"},"previous_names":[],"tags_count":82,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedib0t%2Fgo-pretty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedib0t%2Fgo-pretty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedib0t%2Fgo-pretty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedib0t%2Fgo-pretty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jedib0t","download_url":"https://codeload.github.com/jedib0t/go-pretty/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253124242,"owners_count":21857614,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ascii","golang","list","pretty","progress-bar","progressbar","string-manipulation","table","table-writer","tablewriter"],"created_at":"2024-07-31T10:00:33.882Z","updated_at":"2025-05-08T18:05:15.487Z","avatar_url":"https://github.com/jedib0t.png","language":"Go","funding_links":[],"categories":["开源类库","Go","Open source library","语言资源库"],"sub_categories":["命令行","Command Line","go"],"readme":"# go-pretty\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/jedib0t/go-pretty/v6.svg)](https://pkg.go.dev/github.com/jedib0t/go-pretty/v6)\n[![Build Status](https://github.com/jedib0t/go-pretty/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/jedib0t/go-pretty/actions?query=workflow%3ACI+event%3Apush+branch%3Amain)\n[![Coverage Status](https://coveralls.io/repos/github/jedib0t/go-pretty/badge.svg?branch=main)](https://coveralls.io/github/jedib0t/go-pretty?branch=main)\n[![Go Report Card](https://goreportcard.com/badge/github.com/jedib0t/go-pretty/v6)](https://goreportcard.com/report/github.com/jedib0t/go-pretty/v6)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=jedib0t_go-pretty\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=jedib0t_go-pretty)\n\nUtilities to prettify console output of tables, lists, progress-bars, text, etc.\nwith a heavy emphasis on customization.\n\n## Usage\n\nThe current major version of this package is __v6__, and it follows the standard\noutlined [here](https://go.dev/doc/modules/version-numbers#major-version).\n\nRun `go get github.com/jedib0t/go-pretty/v6` to add this as a dependency to your\nproject, and import the packages in your code using one or more of these:\n* `github.com/jedib0t/go-pretty/v6/list`\n* `github.com/jedib0t/go-pretty/v6/progress`\n* `github.com/jedib0t/go-pretty/v6/table`\n* `github.com/jedib0t/go-pretty/v6/text`\n\n## Table\n\nPretty-print tables in a terminal with colors, nested tables and more.\n\n```\n+-----+------------+-----------+--------+-----------------------------+\n|   # | FIRST NAME | LAST NAME | SALARY |                             |\n+-----+------------+-----------+--------+-----------------------------+\n|   1 | Arya       | Stark     |   3000 |                             |\n|  20 | Jon        | Snow      |   2000 | You know nothing, Jon Snow! |\n| 300 | Tyrion     | Lannister |   5000 |                             |\n+-----+------------+-----------+--------+-----------------------------+\n|     |            | TOTAL     |  10000 |                             |\n+-----+------------+-----------+--------+-----------------------------+\n```\n\nExecute `go run github.com/jedib0t/go-pretty/v6/cmd/demo-table@latest colors` to get:\n\n\u003cimg src=\"cmd/demo-table/demo-colors.png\" alt=\"Tables with Colors within a Table in a Terminal\"/\u003e\n\nMore details can be found here: [table/](table)\n\n## Progress\n\nTrack the Progress of one or more Tasks like downloading multiple files in\nparallel.\n\n\u003cimg src=\"progress/images/demo.gif\" alt=\"Progress Demo in a Terminal\"/\u003e\n\nMore details can be found here: [progress/](progress)\n\n## List\n\nPretty-print lists with multiple levels/indents into ASCII/Unicode strings.\n\n```\n╭─ Game Of Thrones\n│  ├─ Winter\n│  ├─ Is\n│  ╰─ Coming\n│     ├─ This\n│     ├─ Is\n│     ╰─ Known\n╰─ The Dark Tower\n   ╰─ The Gunslinger\n```\n\nMore details can be found here: [list/](list)\n\n## Text\n\nUtility functions to manipulate text with or without ANSI escape sequences. Most\nof the functions available are used in one or more of the other packages here.\n\n   - Align text [Horizontally](text/align.go) or [Vertically](text/valign.go)\n   - [Colorize](text/color.go) text\n   - Move [cursor](text/cursor.go)\n   - [Format](text/format.go) text (convert case)\n   - Manipulate [strings](text/string.go) (Pad, RepeatAndTrim, RuneCount, etc.)\n   - [Transform](text/transformer.go) text (UnixTime to human-readable-time, pretty-JSON, etc.)\n   - [Wrap](text/wrap.go) text\n\nGoDoc has examples for all the available functions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedib0t%2Fgo-pretty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjedib0t%2Fgo-pretty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedib0t%2Fgo-pretty/lists"}