{"id":15647461,"url":"https://github.com/fabien0102/go2dts","last_synced_at":"2025-10-10T14:05:16.669Z","repository":{"id":44168704,"uuid":"142292640","full_name":"fabien0102/go2dts","owner":"fabien0102","description":"A simple cli-tools to transform golang `struct` and `const` to typescript `interface` and `type`","archived":false,"fork":false,"pushed_at":"2023-01-04T08:28:09.000Z","size":849,"stargazers_count":44,"open_issues_count":13,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-30T13:15:36.859Z","etag":null,"topics":["codegen","go","typescript"],"latest_commit_sha":null,"homepage":null,"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/fabien0102.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}},"created_at":"2018-07-25T11:47:46.000Z","updated_at":"2022-09-16T21:09:26.000Z","dependencies_parsed_at":"2023-02-02T05:10:13.114Z","dependency_job_id":null,"html_url":"https://github.com/fabien0102/go2dts","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/fabien0102/go2dts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabien0102%2Fgo2dts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabien0102%2Fgo2dts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabien0102%2Fgo2dts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabien0102%2Fgo2dts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabien0102","download_url":"https://codeload.github.com/fabien0102/go2dts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabien0102%2Fgo2dts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004184,"owners_count":26083688,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"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":["codegen","go","typescript"],"created_at":"2024-10-03T12:19:33.588Z","updated_at":"2025-10-10T14:05:16.654Z","avatar_url":"https://github.com/fabien0102.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go2dts\n\n![logo](assets/go2dts-200w.png)\n\nA simple cli-tools to transform golang `struct` and `const` to typescript `interface` and `type`\n\n### Installation\n\n```bash\nnpm i -g go2dts\n```\n\n### Usage\n\n```bash\ngo2dts \u003cgoLangDirs ...\u003e \u003ctypescriptFile\u003e\n```\n\n### Testing and developing\n\nJust put your golang file into `__tests__/inputs` and it will be parse each time you execute `npm test` or `npm start`.\n\n`npm start` is more quick, so perfect to add some console.log and improve the parsing.\n\n`npm test --watch` generate a snapshot, so you can just update this one to the expecting state and start coding to have everything green #TDDStyle\n\n### Know issues\n\n- The type mapping is incomplete (I'm not a golang developper, so I add types when I discover them)\n- This library will not follow the `import` dependencies, so the output types can be broken\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabien0102%2Fgo2dts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabien0102%2Fgo2dts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabien0102%2Fgo2dts/lists"}