compiler/cpp/src/generate/t_go_generator.cc
/**
 * Renders all the imports necessary for including another Thrift program
 */
Renders all the imports necessary for including another Thrift program
Renders all the imports necessary for including another Thrift program
string t_go_generator::render_includes() {
  const vector<t_program*>& includes = program_->get_includes();
  string result = "";
  for (size_t i = 0; i < includes.size(); ++i) {
    result += "import \"thriftlib/" + get_real_go_module(includes[i]) + "\"\n";
  }
  if (includes.size() > 0) {
    result += "\n";
  }
  return result;
}
string t_go_generator :: render_includes ( ) { const vector < t_program * > & includes = program_ -> get_includes ( ) ; string result = " " ; for ( size_t i = 0 ; i < includes . size ( ) ; ++ i ) { result += " \" " + get_real_go_module ( includes [ i ] ) + " \" \n " ; } if ( includes . size ( ) > 0 ) { result += " \n " ; } return result ; }
Renders all the imports necessary for including another Thrift program
Renders all the imports necessary for including another Thrift program