{"id":13483385,"url":"https://github.com/mholt/curl-to-go","last_synced_at":"2025-05-14T09:06:37.463Z","repository":{"id":3667488,"uuid":"50481899","full_name":"mholt/curl-to-go","owner":"mholt","description":"Convert curl commands to Go code in your browser","archived":false,"fork":false,"pushed_at":"2024-11-26T22:25:56.000Z","size":295,"stargazers_count":1815,"open_issues_count":10,"forks_count":166,"subscribers_count":32,"default_branch":"gh-pages","last_synced_at":"2025-05-14T09:05:25.622Z","etag":null,"topics":["curl","curl-commands","go","golang"],"latest_commit_sha":null,"homepage":"https://mholt.github.io/curl-to-go","language":"JavaScript","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/mholt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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},"funding":{"github":["mholt"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2016-01-27T04:37:30.000Z","updated_at":"2025-04-28T11:46:15.000Z","dependencies_parsed_at":"2024-12-28T07:00:16.724Z","dependency_job_id":"63ad35ee-ec13-4485-8b89-d989c6a56e0f","html_url":"https://github.com/mholt/curl-to-go","commit_stats":{"total_commits":45,"total_committers":19,"mean_commits":"2.3684210526315788","dds":0.5111111111111111,"last_synced_commit":"b1808c50d30d8e1336fce14bdf1aab2764c7ab62"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mholt%2Fcurl-to-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mholt%2Fcurl-to-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mholt%2Fcurl-to-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mholt%2Fcurl-to-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mholt","download_url":"https://codeload.github.com/mholt/curl-to-go/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254110374,"owners_count":22016391,"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":["curl","curl-commands","go","golang"],"created_at":"2024-07-31T17:01:10.653Z","updated_at":"2025-05-14T09:06:37.440Z","avatar_url":"https://github.com/mholt.png","language":"JavaScript","funding_links":["https://github.com/sponsors/mholt"],"categories":["JavaScript","Repositories","Langages"],"sub_categories":["Golang"],"readme":"curl-to-Go\n===========\n\ncurl-to-Go is a tool to instantly convert [curl](http://curl.haxx.se) commands to Go code in the browser. It does *not* guarantee high-fidelity conversions, but it's good enough for most API docs that have curl samples.\n\nThis is a sister tool to [JSON-to-Go](https://mholt.github.io/json-to-go), which converts JSON to a Go struct type definition. To do the reverse, check out [moul/http2curl](https://github.com/moul/http2curl).\n\n### Try it\n\n**[Check it out!](https://mholt.github.io/curl-to-go)** It works inside your browser. Just give the code a once-over since it will need you to flesh out some parts like error handling.\n\n\n### FAQ\n\n#### Does any curl command work?\n\nAny curl command should work, but only certain flags are understood and converted into Go code. The rest of the flags will be ignored.\n\n#### Which kinds of curl commands are understood?\n\nMostly simple HTTP commands (headers, basic auth, body, etc).\n\n#### Will you consider supporting *this-or-that* flag?\n\ncurl has like a bajillion options, so don't expect all of them to be implemented; just the most common/important ones to stub out code from API samples and docs, etc. But feel free to open an issue or submit a pull request! To request a new flag, please provide the equivalent Go code.\n\n\n\n### Credits\n\ncurl-to-Go is brought to you by Matt Holt ([mholt6](https://twitter.com/mholt6)). Enjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmholt%2Fcurl-to-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmholt%2Fcurl-to-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmholt%2Fcurl-to-go/lists"}