From 53078be3ee94d557a81e162b727bfe643c3e9dd8 Mon Sep 17 00:00:00 2001 From: Jens Geyer Date: Sat, 2 Nov 2013 20:05:40 +0200 Subject: [PATCH] THRIFT-1815 Code generators line buffer output - Go compiler Patch: Jens Geyer --- compiler/cpp/src/generate/t_go_generator.cc | 2 ++ 1 file changed, 2 insertions(+) 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. -- 2.17.1