currently I have many go structs generated by thrift and I want to fill the real data in to them and send to server. Server will use TBinaryProtocol to decode data.
thrifter: https://github.com/thrift-iterator/go TBinaryProtocol https://people.apache.org/~thejas/thrift-0.9/javadoc/org/apache/thrift/protocol/TBinaryProtocol.Factory.html
client: data := thrifter.Marshal(interface{}) -> send() ->
server: decode(factory.getProtocol(buf))