英文:
Are there libCURL bindings for the Go language
问题
我已经在网上搜索了Go语言的libCURL绑定,但是没有找到任何结果...我还查看了curl.haxx.se上的绑定列表,但是没有找到Go的绑定。网络上有这样的项目吗?
如果不存在这样的绑定,是否有任何替代库,或者您可以提供一些提示,我如何实现自己的libCURL绑定?
谢谢
英文:
I have searched web for libCURL bindings for Go language, but failed to find any... I also checked curl.haxx.se list of bindings with no success for Go. Are there any such project on net?
If such binding don't exists are where any alternative libraries or maybe you could provide some hints how I could implement my own bindings of libCURL?
Thanks
答案1
得分: 8
我发现了Cgo实用程序:“Cgo使得可以创建调用C代码的Go包”。我将尝试为Go创建我的libCURL包装器。
更新:
创建了github存储库gocurl。
Easy接口的初始版本,尚未工作。但这是一个开始
更新2:
找到了更好的实现go-curl。
英文:
I found Cgo utility: "Cgo enables the creation of Go packages that call C code". I will try to create my wrapper of libCURL for Go.
UPDATED:
Created github repository gocurl.
Initial version of Easy interface, not working yet. But it's a start
UPDATED 2:
Found better implementation go-curl
答案2
得分: -1
我倾向于只使用http.Client,它为我提供了足够的功能,不需要使用Curl:
http://golang.org/pkg/http/#Client
英文:
I tend to just use http.Client which does enough stuff for me not to need Curl:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论