THRIFT-1815 Code generators line buffer output - Go compiler
authorJens Geyer <jensg@apache.org>
Sat, 2 Nov 2013 18:05:40 +0000 (20:05 +0200)
committerJens Geyer <jensg@apache.org>
Sat, 2 Nov 2013 18:05:40 +0000 (20:05 +0200)
Patch: Jens Geyer

compiler/cpp/src/generate/t_go_generator.cc

index 0d7e6c2..ad64956 100644 (file)
@@ -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.