如题,使用protobuf传输一段有格式的代码字符串,在protobuf如何定义
例如,我想传输如下代码字符串:
/**
* 问好的代码
*/
public void sayhello(String name){
System.out.println("hello"+name);
}
代码字符串的格式也要保持。
我的想法是,定义一个repeat的字符串变量,存储每一行。
有没有其他的方法?谢谢各位。
如题,使用protobuf传输一段有格式的代码字符串,在protobuf如何定义
例如,我想传输如下代码字符串:
/**
* 问好的代码
*/
public void sayhello(String name){
System.out.println("hello"+name);
}
代码字符串的格式也要保持。
我的想法是,定义一个repeat的字符串变量,存储每一行。
有没有其他的方法?谢谢各位。