有没有Go语言的libCURL绑定?

huangapple go评论91阅读模式
英文:

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接口的初始版本,尚未工作。但这是一个开始 有没有Go语言的libCURL绑定?

更新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 有没有Go语言的libCURL绑定?

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:

http://golang.org/pkg/http/#Client

huangapple
  • 本文由 发表于 2011年8月2日 22:00:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/6913292.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定