{"id":42044638,"url":"https://github.com/subchen/go-tableify","last_synced_at":"2026-01-26T06:06:40.206Z","repository":{"id":68620280,"uuid":"116910514","full_name":"subchen/go-tableify","owner":"subchen","description":"Pretty console printing of tabular data","archived":false,"fork":false,"pushed_at":"2018-08-24T12:55:57.000Z","size":12,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-20T11:06:59.240Z","etag":null,"topics":["console","golang","printing","table"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subchen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-10T05:03:13.000Z","updated_at":"2018-11-05T16:50:51.000Z","dependencies_parsed_at":"2023-07-24T21:17:53.410Z","dependency_job_id":null,"html_url":"https://github.com/subchen/go-tableify","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/subchen/go-tableify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fgo-tableify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fgo-tableify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fgo-tableify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fgo-tableify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subchen","download_url":"https://codeload.github.com/subchen/go-tableify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fgo-tableify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28768074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T03:54:34.369Z","status":"ssl_error","status_checked_at":"2026-01-26T03:54:33.031Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["console","golang","printing","table"],"created_at":"2026-01-26T06:06:40.145Z","updated_at":"2026-01-26T06:06:40.199Z","avatar_url":"https://github.com/subchen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-tableify\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/subchen/go-tableify)](https://goreportcard.com/report/github.com/subchen/go-tableify)\n[![GoDoc](https://godoc.org/github.com/subchen/go-tableify?status.svg)](https://godoc.org/github.com/subchen/go-tableify)\n\nPretty console printing of tabular data\n\n## Installation\n\nMake sure you have a working Go environment. Follow the [Go install instructions](http://golang.org/doc/install.html).\n\nTo install `go-tableify`, simply run:\n\n```\ngo get github.com/subchen/go-tableify\n```\n\n## Example\n\n### Manunal Set\n\n```go\npackage main\n\nimport (\n\t\"github.com/subchen/go-tableify\"\n)\n\nfunc main() {\n\tt := tableify.New()\n\tt.SetHeaders(\"Name\", \"Files\", \"Updated\")\n\tt.SetWidths(10, 0, 0) // optional\n\tt.EmptyText = \"no data in table\"\n\n\tt.AddRow(\"yum-repo\", 45, \"2018-01-06T07:45:22Z\")\n\tt.AddRow(\"deb-repo\", 12, \"2018-01-06T08:05:09Z\")\n\n\tt.Print()\n}\n```\n\n### Using Struct\n\n```go\npackage main\n\nimport (\n\t\"github.com/subchen/go-tableify\"\n)\n\ntype Repo struct {\n\tName        string   `json:\"name\" tableify:\"-\"`\n\tDesc        string   `json:\"desc\"`\n\tFiles       int      `json:\"files\" tableify:\"-,5\"`\n\tLastUpdated string   `json:\"lastUpdated\" tableify:\"Updated\"`\n}\n\nfunc main() {\n\trepolist := []Repo{\n\t\t{\n\t\t\tName:         \"yum-repo\",\n\t\t\tFiles:        45,\n\t\t\tLastUpdated:  \"2018-01-06T07:45:22Z\",\n\t\t},\n\t\t{\n\t\t\tName:         \"deb-repo\",\n\t\t\tFiles:        12,\n\t\t\tLastUpdated:  \"2018-01-06T08:05:09Z\",\n\t\t},\n\t}\n\n\tt := tableify.New()\n\tt.SetHeadersFromStruct(new(Repo))\n\tt.AddRowObjectList(repolist)\n\tt.Print()\n}\n```\n\nStruct Field Tag formats:\n\n- `name` or `-`\n\n\teg: `tableify:\"-\"`, `tableify:\"NAME\"`\n\n- `name,width`\n\n\teg: `tableify:\"-,20\"`\n\n- `name,width,format`\n\n\teg: `tableify:\"-,0,%.2f\"`\n\n\n## Output\n```\nName         Files   Updated\n-----------------------------------------\nyum-repo     45      2018-01-06T07:45:22Z\ndeb-repo     12      2018-01-06T08:05:09Z\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubchen%2Fgo-tableify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubchen%2Fgo-tableify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubchen%2Fgo-tableify/lists"}