{"id":13469968,"url":"https://github.com/clipperhouse/gen","last_synced_at":"2025-05-15T15:06:46.732Z","repository":{"id":11171258,"uuid":"13546188","full_name":"clipperhouse/gen","owner":"clipperhouse","description":"Type-driven code generation for Go","archived":false,"fork":false,"pushed_at":"2023-10-31T21:03:51.000Z","size":4388,"stargazers_count":1427,"open_issues_count":30,"forks_count":90,"subscribers_count":36,"default_branch":"master","last_synced_at":"2025-05-08T02:45:57.661Z","etag":null,"topics":["code-generation","generics","go"],"latest_commit_sha":null,"homepage":"http://clipperhouse.com/gen/overview/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clipperhouse.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2013-10-13T20:26:36.000Z","updated_at":"2025-04-15T00:09:27.000Z","dependencies_parsed_at":"2024-01-13T12:52:35.602Z","dependency_job_id":"e776c081-6800-4655-aa18-dac87723305a","html_url":"https://github.com/clipperhouse/gen","commit_stats":{"total_commits":631,"total_committers":12,"mean_commits":"52.583333333333336","dds":0.06973058637083995,"last_synced_commit":"b49aa15984e8594cf517252d23a30811f084eda4"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clipperhouse%2Fgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clipperhouse%2Fgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clipperhouse%2Fgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clipperhouse%2Fgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clipperhouse","download_url":"https://codeload.github.com/clipperhouse/gen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254364270,"owners_count":22058878,"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":["code-generation","generics","go"],"created_at":"2024-07-31T16:00:20.071Z","updated_at":"2025-05-15T15:06:46.704Z","avatar_url":"https://github.com/clipperhouse.png","language":"Go","readme":"## What’s this?\n\n`gen` is a code-generation tool for Go. It’s intended to offer generics-like functionality on your types. Out of the box, it offers offers LINQ/underscore-inspired methods.\n\nIt also offers third-party, runtime extensibility via [typewriters](https://github.com/clipperhouse/typewriter).\n\n#### [Introduction and docs…](http://clipperhouse.github.io/gen/)\n\n[Changelog](https://github.com/clipperhouse/gen/blob/master/CHANGELOG.md)\n\n[Hey, a video](https://www.youtube.com/watch?v=KY8OXFi3CDU)\n\n#### ‼️ \n\nThis project is deprecated. It won't work with recent versions of Go, and...Go now has proper generics! Treat this project as a historical curiosity.\n\n### Typewriters\nThere is a list of open-source typewriters in [TYPEWRITERS.md](https://github.com/clipperhouse/gen/blob/master/TYPEWRITERS.md). Please add your own.\n\n### Contributing\n\nThere are three big parts of `gen`.\n\n#### gen\n\nThis repository. The gen package is primarily the command-line interface. Most of the work is done by the typewriter package, and individual typewriters.\n\n#### typewriter\n\nThe [typewriter package](https://github.com/clipperhouse/typewriter) is where most of the parsing, type evaluation and code generation architecture lives.\n\n#### typewriters\n\nTypewriters are where templates and logic live for generating code. Here’s [set](https://github.com/clipperhouse/set), which will make a lovely Set container for your type. Here’s [slice](https://github.com/clipperhouse/slice), which provides the built-in LINQ-like functionality. Here’s [stringer](https://github.com/clipperhouse/stringer), a fork of Rob Pike’s [tool](https://godoc.org/golang.org/x/tools/cmd/stringer).\n\nThird-party typewriters are added easily by the end user. You publish them as Go packages for import. [Learn more...](https://clipperhouse.github.io/gen/typewriters/)\n\nWe’d love to see typewriter packages for things like strongly-typed JSON serialization, `Queue`s, `Pool`s or other containers. Anything “of T” is a candidate for a typewriter.\n","funding_links":[],"categories":["代码生成与泛型","Go","Misc","Generation and Generics","Generation \u0026 Generics","Code generation \u0026 ‘generics’","代碼生成與泛型","\u003cspan id=\"代和泛型-generation-and-generics\"\u003e代和泛型 Generation and Generics\u003c/span\u003e","Relational Databases"],"sub_categories":["高级控制台界面","Advanced Console UIs","Middlewares","高級控制台界面","SQL 查询语句构建库","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclipperhouse%2Fgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclipperhouse%2Fgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclipperhouse%2Fgen/lists"}