{"id":26883769,"url":"https://github.com/jiro4989/markup-table","last_synced_at":"2026-07-01T01:32:04.790Z","repository":{"id":80274055,"uuid":"200231455","full_name":"jiro4989/markup-table","owner":"jiro4989","description":"A package for generating tables of markup languages in Go.","archived":false,"fork":false,"pushed_at":"2019-08-02T21:14:04.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T06:39:38.304Z","etag":null,"topics":["golang","library","markup","package"],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/jiro4989/markup-table","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jiro4989.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-08-02T12:32:49.000Z","updated_at":"2019-08-02T21:14:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"d55fd128-3b12-4f49-8033-ba5e187346ce","html_url":"https://github.com/jiro4989/markup-table","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jiro4989/markup-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fmarkup-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fmarkup-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fmarkup-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fmarkup-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiro4989","download_url":"https://codeload.github.com/jiro4989/markup-table/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiro4989%2Fmarkup-table/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34989787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["golang","library","markup","package"],"created_at":"2025-03-31T17:37:07.918Z","updated_at":"2026-07-01T01:32:04.768Z","avatar_url":"https://github.com/jiro4989.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markup-table\n\n[![Build Status](https://travis-ci.org/jiro4989/markup-table.svg?branch=master)](https://travis-ci.org/jiro4989/markup-table)\n\n`markup-table` is a package for generating tables of markup languages.\n\n## Installation\n\n```bash\ngo get github.com/jiro4989/markup-table\n```\n\n## Usage examples\n\n```go\npackage table_test\n\nimport (\n\t\"fmt\"\n\n\ttable \"github.com/jiro4989/markup-table\"\n)\n\nfunc ExampleMarkdown() {\n\tmatrix := [][]string{\n\n\t\t{\"Head 1\", \"Head 2\", \"Head 3\"},\n\t\t{\"Body 1\", \"Body 2\", \"Body 3\"},\n\t\t{\"Body 4\", \"Body 5\", \"Body 6\"},\n\t}\n\tfor _, row := range table.Markdown(matrix) {\n\t\tfmt.Println(row)\n\t}\n\t// Output:\n\t// | Head 1 | Head 2 | Head 3 |\n\t// | :---: | :---: | :---: |\n\t// | Body 1 | Body 2 | Body 3 |\n\t// | Body 4 | Body 5 | Body 6 |\n}\n\nfunc ExampleHTML() {\n\tmatrix := [][]string{\n\n\t\t{\"Head 1\", \"Head 2\", \"Head 3\"},\n\t\t{\"Body 1\", \"Body 2\", \"Body 3\"},\n\t\t{\"Body 4\", \"Body 5\", \"Body 6\"},\n\t}\n\tfor _, row := range table.HTML(matrix) {\n\t\tfmt.Println(row)\n\t}\n\t// Output:\n\t// \u003ctable\u003e,\n\t// \u003cthead\u003e,\n\t// \u003ctr\u003e\u003ctd\u003eHead 1\u003c/td\u003e\u003ctd\u003eHead 2\u003c/td\u003e\u003ctd\u003eHead 3\u003c/td\u003e\u003c/tr\u003e,\n\t// \u003c/thead\u003e,\n\t// \u003ctbody\u003e,\n\t// \u003ctr\u003e\u003ctd\u003eBody 1\u003c/td\u003e\u003ctd\u003eBody 2\u003c/td\u003e\u003ctd\u003eBody 3\u003c/td\u003e\u003c/tr\u003e,\n\t// \u003ctr\u003e\u003ctd\u003eBody 4\u003c/td\u003e\u003ctd\u003eBody 5\u003c/td\u003e\u003ctd\u003eBody 6\u003c/td\u003e\u003c/tr\u003e,\n\t// \u003c/tbody\u003e,\n\t// \u003c/table\u003e,\n}\n\nfunc ExampleAsciidoc() {\n\tmatrix := [][]string{\n\n\t\t{\"Head 1\", \"Head 2\", \"Head 3\"},\n\t\t{\"Body 1\", \"Body 2\", \"Body 3\"},\n\t\t{\"Body 4\", \"Body 5\", \"Body 6\"},\n\t}\n\tfor _, row := range table.Asciidoc(matrix) {\n\t\tfmt.Println(row)\n\t}\n\t// Output:\n\t// [options=header],\n\t// |=================,\n\t// | Head 1 | Head 2 | Head 3,\n\t// | Body 1 | Body 2 | Body 3,\n\t// | Body 4 | Body 5 | Body 6,\n\t// |=================,\n}\n```\n\n## Documentations\n\n* [markup-table - godoc](https://godoc.org/github.com/jiro4989/markup-table)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiro4989%2Fmarkup-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiro4989%2Fmarkup-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiro4989%2Fmarkup-table/lists"}