go-thrift icon indicating copy to clipboard operation
go-thrift copied to clipboard

Flag variables should be passed to GoGenerator explicitly so that it is easy to call into go-thrift programmatically

Open colonelpanic8 opened this issue 10 years ago • 0 comments

IMO, the only place that it is appropriate to use flag variables is in a main function. From that point onward they should be passed to the objects as configuration.

Is there any reason that the flag variables flagGoImportPrefix is not set in main and passed to the generator?

colonelpanic8 avatar Oct 14 '15 17:10 colonelpanic8