Thanks for the info everyone! This is actually an attempt to use calls to
an existing Java server with a thrift interface.
I just tried https://github.com/apesternikov/thrift4go
It seemed to generate bindings that don't work too well.
1) It uses an import statement
"github.com/apesternikov/thrift4go/lib/go/src/thrift" even though the merge
install process creates it as "thrift", so I had to symlink the pkg
2) It didn't really like the fact that the project uses two different
thrift files, with one importing the other. It created duplicate
declarations for some stuff in the main file, and the other "common" thrift
file had unused imports.
After I hand edited the main generated file to just paste in the lines from
the other "common" generated file and removed the import for it, it was
complaining a bunch about the fact that it uses a "type Guid string", and
uses that Guid type as a string argument:
RpcService.go:10337: cannot use p.Id (type Guid) as type string in
Ideally I would just be able to generate the bindings the same way as the
other project does for Java and python, and just have immediately
functional bindings. Seems like what is being generated needs some hand
editing so far :-(
On Friday, May 10, 2013 3:40:32 PM UTC+12, Justin Israel wrote:
Can anyone confirm whether Thrift support for Go is officially up to date?
I was trying to get started with a new project, and was just testing out
the thrift generator and it seemed to produce code that isn't valid for Go
1.x? Mainly a lot of "err is shadowed during return" until it just failed.
I saw go-thrift, which comes with it's own generator, but it seems like
you have to write your spec file in Go as opposed to the thrift spec? It
didn't seems to want to parse my existing thrift spec file without a syntax
Then after search for Go 1.1 thrift support, I came across this:http://code.google.com/p/thrift-go/
Not sure if this is maintained, or just something that someone threw out
there once, since it only has 2 commits.
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/groups/opt_out.