{"id":18728940,"url":"https://github.com/uberswe/html","last_synced_at":"2025-04-12T16:33:25.415Z","repository":{"id":62864865,"uuid":"340826856","full_name":"uberswe/html","owner":"uberswe","description":"html is a go library for generating html components such as buttons, form fields, forms, tables and more using golang.","archived":false,"fork":false,"pushed_at":"2021-02-24T23:21:45.000Z","size":29,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T11:21:14.546Z","etag":null,"topics":["components","golang","html"],"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/uberswe.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}},"created_at":"2021-02-21T05:41:45.000Z","updated_at":"2023-10-01T09:35:14.000Z","dependencies_parsed_at":"2022-11-08T06:32:51.085Z","dependency_job_id":null,"html_url":"https://github.com/uberswe/html","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uberswe%2Fhtml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uberswe%2Fhtml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uberswe%2Fhtml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uberswe%2Fhtml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uberswe","download_url":"https://codeload.github.com/uberswe/html/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248596723,"owners_count":21130752,"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":["components","golang","html"],"created_at":"2024-11-07T14:24:56.972Z","updated_at":"2025-04-12T16:33:25.096Z","avatar_url":"https://github.com/uberswe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# html \nhtml is a go library for generating html components such as buttons, form fields, forms, tables and more using golang.\n\nThis package was created from work I have done on [Beubo](https://github.com/uberswe/beubo).\n\nA more advanced package for writing html in go is [htmlgo](https://github.com/julvo/htmlgo).\n\n## Example\n\nWriting something like this\n\n```go\ntextField := Text().Label(\"Test\").Class(\"test\").Id(\"test\").Name(\"test\")\n\nbutton := Button().Class(\"button\").Content(\"This is a button\")\n\nf := Form().Class(\"test\").Method(\"POST\").Action(\"/\").Fields(textField, button)\n\nfmt.Println(f.Render())\n```\n\nWill output the following\n\n```html\n\u003cdiv class=\"test\"\u003e\n    \u003cform method=\"POST\" action=\"/\"\u003e\n        \u003cdiv class=\"test\"\u003e\n            \u003clabel for=\"test\"\u003eTest\u003c/label\u003e\n            \u003cinput type=\"text\" id=\"test\" name=\"test\" value=\"\" placeholder=\"\"\u003e\n        \u003c/div\u003e\n        \u003cbutton class=\"button\"\u003eThis is a button\u003c/button\u003e\n    \u003c/form\u003e\n\u003c/div\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuberswe%2Fhtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuberswe%2Fhtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuberswe%2Fhtml/lists"}