我使用thrift
编译器(0.9.3)生成gen-go文件夹,同时编译器生成一个函数thrift.PrependError
,在thrift
包(git.apache.org/thrift.git/lib/go/thrift
)。
我应该使用 thrift
编译器 (0.9.2) 吗?
最佳答案
Thrift 0.9.3 中添加了 Prepend error,并存在于当前代码库中:
如果在您的本 map 书馆中找不到它,您需要更新您的本地(或销售)版本的 Thrift。
请记住,您的 thrift 生成器二进制文件(在 /usr/local/bin/thrift
中)可以是与您在 $GOPATH
中的包不同的版本。始终确保将两者一起更新。
关于go - Thrift Compiler(0.9.3) 生成 Thrift 包中未定义的函数 thrift.PrependError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39474687/