开发者

Are there libCURL bindings for the Go language

开发者 https://www.devze.com 2023-03-24 21:26 出处:网络
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 开发者_如何学Gono success for Go. Are there any such project on ne

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 开发者_如何学Gono 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


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


I tend to just use http.Client which does enough stuff for me not to need Curl:

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

0

精彩评论

暂无评论...
验证码 换一张
取 消