英文:
Is there a RETS package for the go language?
问题
我在寻找适用于Go的RETS包,但尚未找到。有人比我更幸运找到了吗?
librets C++库有许多语言的绑定,但没有适用于Go的绑定。似乎swig无法为该库生成Go的绑定。也许解决方案是创建一个原生的Go包?
英文:
I've searched for a RETS package for Go but could not find one yet. Did anyone had better luck than me finding that?
The librets c++ library has bindings for many languages but not for Go. Seems swig can't generate the binding for Go for that library. Maybe the solution is creating a native Go package?
答案1
得分: 1
此时还没有。Go是一种年轻的语言,因此没有很多专门的库。你可能需要自己编写。
关于协议的所有信息都可以在这里找到。据我所了解,1.x版本基于XML(RPC?)并使用HTTP作为传输方式。2.x版本使用SOAP 1.2,同样是在HTTP传输上使用XML。
不幸的是,Go也没有任何关于SOAP的库,所以无论如何你都需要使用net/http
和encoding/xml
包。你需要手动读取/编写SOAP信封来进行SOAP调用。
参考这个答案来了解如何在Go中使用SOAP。
英文:
At this time there isn't. Go is a young language, and as such does not have a lot of niche libraries. You'll likely need to write your own.
All the information about the protocol is found here. From what I can gather 1.x versions are based on XML (RPC?) and uses HTTP as a transport. Version 2.x uses SOAP 1.2, which is also XML over an HTTP transport.
Unfortunately there isn't any SOAP libraries for Go either, so either way you'll need to use the net/http
and encoding/xml
packages. You'll have to make the SOAP calls reading/writing the SOAP envelopes manually.
See this answer for working with SOAP in Go.
答案2
得分: 0
我找到了项目go-rest。希望这可以帮到你。
英文:
I have found the project go-rest. I hope this can help you.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论