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 0d7e6c2..ad64956 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.