{"id":21288166,"url":"https://github.com/karitham/handlergen","last_synced_at":"2025-03-15T15:27:19.860Z","repository":{"id":57631840,"uuid":"379996957","full_name":"karitham/handlergen","owner":"karitham","description":"Generate helper functions to map handler to concrete types","archived":false,"fork":false,"pushed_at":"2021-10-28T10:01:44.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T09:56:26.167Z","etag":null,"topics":["codegen","go","golang","http"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karitham.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-06-24T17:03:46.000Z","updated_at":"2021-10-28T10:01:47.000Z","dependencies_parsed_at":"2022-08-31T11:04:12.005Z","dependency_job_id":null,"html_url":"https://github.com/karitham/handlergen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karitham%2Fhandlergen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karitham%2Fhandlergen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karitham%2Fhandlergen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karitham%2Fhandlergen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karitham","download_url":"https://codeload.github.com/karitham/handlergen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243748538,"owners_count":20341700,"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":["codegen","go","golang","http"],"created_at":"2024-11-21T12:19:02.346Z","updated_at":"2025-03-15T15:27:19.840Z","avatar_url":"https://github.com/karitham.png","language":"Go","readme":"\n# HandlerGen\n\n## Notice\n\nIf you happen to stumble on this, it is barely functional, and unmaintained.\nMy effort goes in favor of \u003chttps://github.com/discord-gophers/goapi-gen\u003e, which fullfills my goals and ideas, and has more traction.\n\n## Description\n\nA go net/http HandlerFunc code generator.\nParses all your args and give them to you as function arguments,\nwhich you can then validate and use.\n\n## Features\n\nMultiple arguments format supported:\n- Query URL\n- HTTP headers\n- Request Body\n- URL Path, using go-chi\n\nFully net/http complient\n\nCodegen, no slow downs!\n\n  \n## Installation \n\nInstall Handlergen with the go toolchain\n\n```bash \ngo install github.com/Karitham/handlergen@latest\n```\n\n## Usage/Examples\n\nDescribe the function you want\n\n```yml\nfunctions:\n  example1:\n    query:\n      user_id:\n        type: int\n    body:\n      type: gen.Template\n      import: github.com/Karitham/handlergen/gen\n```\n\nand codegen a httphandler\n\n```sh\nhandlergen -file _example/basic/basic.yaml \u003e _example/basic/generated.go\n```\n\n**[View more examples](_example)**\n## Documentation\n\n| flag | default value | description |\n| ---- | --------- | ----------- |\n| file | handlers.yaml  | handlers gen config file |\n| format  | handlergen  | input file format, use `openapi` for an open api file |\n| pkg  | handlers  | package name |\n\n## Authors\n\n- [@Karitham](https://www.github.com/Karitham)\n\n## License\n\n[ISC](https://choosealicense.com/licenses/isc/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaritham%2Fhandlergen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaritham%2Fhandlergen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaritham%2Fhandlergen/lists"}