// the find
mholt/curl-to-go
Convert curl commands to Go code in your browser
A browser-based converter that takes a curl command and spits out roughly equivalent Go code using net/http. It's a productivity shortcut for developers translating API documentation examples into Go without writing boilerplate from scratch.
Runs entirely in the browser with no server-side dependency, which is good for sensitive API commands you wouldn't want to paste into a third-party service. The companion to JSON-to-Go makes it a useful pairing for the full API-client-from-docs workflow. It's a single focused tool that does one thing and doesn't pretend to do more.
The JavaScript conversion logic hasn't been meaningfully updated in years and the repo is effectively in maintenance mode — open issues with common curl flags go unaddressed. Generated code skips error handling entirely, so it's a first draft at best, not something you can use directly. Only a small subset of curl flags are understood; anything beyond basic headers, auth, and body is silently dropped with no warning to the user. At 1800 stars it has clear demand, but the project appears to be a hobby artifact with no active development path.