Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
425 B
18 lines
425 B
10 months ago
|
syntax = "proto3";
|
||
|
|
||
|
package foo;
|
||
|
|
||
|
message TestSpecialCharacters {
|
||
|
// test special characters (shouldn't escape): ;,/?:&=+$-_.!~*'()
|
||
|
// test open comment (shouldn't escape): /*
|
||
|
// test close comment (should escape): */
|
||
|
// test at-sign (should escape): @foo
|
||
|
// test forward slash as first character on a newline:
|
||
|
///
|
||
|
string a = 1;
|
||
|
|
||
|
///
|
||
|
// test forward slash as first character on first line
|
||
|
string b = 2;
|
||
|
}
|