From: Jens Geyer Date: Sat, 2 Nov 2013 18:05:40 +0000 (+0200) Subject: THRIFT-1815 Code generators line buffer output - Go compiler X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=53078be3ee94d557a81e162b727bfe643c3e9dd8;p=common%2Fthrift.git THRIFT-1815 Code generators line buffer output - Go compiler Patch: Jens Geyer --- diff --git a/compiler/cpp/src/generate/t_go_generator.cc b/compiler/cpp/src/generate/t_go_generator.cc index 0d7e6c2b..ad64956b 100644 --- a/compiler/cpp/src/generate/t_go_generator.cc +++ b/compiler/cpp/src/generate/t_go_generator.cc @@ -41,6 +41,8 @@ using namespace std; +static const string endl = "\n"; // avoid ostream << std::endl flushes + /** * A helper for automatically formatting the emitted Go code from the Thrift * IDL per the Go style guide.