thriftgo

Compile Thrift IDL files to Go code with plugin support.

brewmacoslinux
Try with needOr install directly
Source

About

Implementation of thrift compiler in go language with plugin mechanism

Commands

thriftgo

Examples

generate go code from thrift definition file$ thriftgo -l go -o ./gen-go service.thrift
compile thrift with custom output directory$ thriftgo -l go -o ./generated -pkg mypackage api.thrift
generate code with thrift plugins enabled$ thriftgo -l go -p github.com/plugin -o ./gen-go service.thrift
compile multiple thrift files together$ thriftgo -l go -o ./gen-go service.thrift common.thrift
generate thrift code with namespace mapping$ thriftgo -l go -n 'myapp=example.com/myapp' -o ./gen-go schema.thrift