News for hackers. Stuff that matters.
Re:Convert curl commands to Go code by mholt on Wednesday February 10, 2016 @03:07PM (#11075573)
Hey HN, I wrote this to scratch a perpetual itch after reading enough API documentations and re-writing basically the same code over and over. Right now it only supports the most common flags that I saw. As far as I'm concerned the project is finished, but PRs are welcome to cover any glaring omissions or fix bugs.

Someone also showed me this tool which does the same thing but supports more languages and options: https://shibukawa.github.io/curl_as_dsl/

Re:Convert curl commands to Go code by mlangdon on Wednesday February 10, 2016 @08:00PM (#11077510)
Very cool. Flags I commonly see/implement (curl to Python or Ruby usually) include -o (download) and -k (ignore ssl warnings -- you might want an warning comment if you implement that one).